Example MCP workflows

This page contains examples of MCP workflows, which are a linked series of actions used by an AI agent to achieve a goal. MCP workflows can involve tool use as well as connection to resources like repositories.

Repository context discovery

The Palantir MCP is able to provide ontology and code-snippet context to your agent loop. After the context is provided, the agent will be able to perform the following:

  • Navigate your code base and use internal Palantir libraries.
  • Navigate the remote Foundry project and investigate resources within the project.

Example queries:

  • "Fetch code/API context for my Foundry project"
  • "Use the Palantir MCP to provide context on this project"
  • "Tell me about my repository"

The Palantir MCP currently provides context for React OSDK, Python transform, and Typescript function repositories.

Repository context discovery diagram.

Dataset search and creation

The Palantir MCP is able to view list datasets, run SQL queries on them, and create datasets with notional data.

Note that the Palantir MCP is not allowed to overwrite existing datasets, but can only create new ones. This provides a safeguard for your existing data.

Example queries:

  • Explore: "What Foundry Datasets do I have access to?"
  • Investigate: "Show me the top delayed Flights in /Path/to/dataset/Flight_routes."
  • Investigate: "Is this dataset clean? ri.foundry.main.dataset.033384ec-73de-41c1-bebe-45178cfc468b"
  • Create: "Create me a Foundry dataset with notional data. It should have columns ..., and be at least 50 rows."
  • Create: "Create me a Foundry dataset with notional data. Use a script to generate 10,000 rows of data."

Dataset search and creation diagram.

Ontology exploration

The Palantir MCP has tools for searching the ontology. The tools allow agents to search through object types, action types, and functions in your ontology.

Example queries:

  • "Find me an object type {description}."
  • "Find or create me an object type {description}."
  • "What functions interacts with this object?"
  • "Find me functions {description}."

Ontology exploration diagram.

Ontology modification and SDK generation

The Palantir MCP can create proposals, modify the ontology, and regenerate your Developer Console OSDK for immediate use in code.

Note that all modifications to the ontology must go through the proposal review process. This means that human review and approval is required before the MCP makes any lasting changes to the ontology.

This flow is initiated by ontology-related queries, such as the following:

  • "Create an object type {description}"
  • "Create a link type {description}"
  • "Create an object type {description} and link it to {description}"
  • "Create a one-to-many link between {object 1} and {object 2}"
  • "Create a many-to-many link between {object 1} and {object 2}"

SDK generation

Ontology modification and SDK generation diagram.

Object type creation

Object type creation diagram.

Link type creation diagram.