Case study
02MCP + agent-optimized APIs
Give an agent a map. Then let it explore.
A useful interface helps an agent decide what to ask next. I design MCP tools around progressive disclosure: discover the landscape, find what matters, then retrieve the detail. Enough context to move forward, with a clear path to more.
Context on demand
- Tool call
- describe()
- Returns
- Available metadata
- Objects
- Fields
- Relationships
- Tool call
- search("…")
- Returns
- Relevant matches
- Object match
- Related object
- Related field
- Tool call
- query(selected)
- Returns
- Selected record
- Definition
- Fields
- Relationships
Start with a map.
Expose the shape of what’s available. Let the agent choose where to look.
Follow the relevant branch.
Narrow the possibilities to useful matches before asking for deeper context.
Open just what’s needed.
Retrieve the selected record’s detail when the agent has a reason to use it.
Step 3 of 3
01The problem
Too much context is as unhelpful as too little.
Objects, fields, and relationships describe Salesforce Core. Extracting that metadata gives agents a map of what is available.
Hand an agent all of it at once and it has to dig for what matters. Hand it too little and it guesses.
02The approach
Progressive disclosure.
Each call answers one question and points to the next: what is available, what is relevant, and what one record holds.
01Describe
Start with a map.
Expose the shape of what’s available. Let the agent choose where to look.
describe()02Search
Follow the relevant branch.
Narrow the possibilities to useful matches before asking for deeper context.
search("…")03Query
Open just what’s needed.
Retrieve the selected record’s detail when the agent has a reason to use it.
query(selected)
The calls are conceptual, not a real API.
03In practice
Product context, ready for agents.
I designed and piloted MCP tools that help agents and builders discover and use Salesforce metadata.
The Core Metadata Platform provides shared meaning. MCP tools make that structure discoverable and usable by agents. The extracted shape becomes agent context: which objects exist, which fields they have, and how they relate.
- Piloted
- MCP tools for Salesforce metadata
04What’s next
Agent-facing APIs stay in my focus.
They are part of my current role as a Principal Software Engineer, alongside the Core Metadata Platform and developer productivity.
My foundation is backend engineering, distributed systems, and APIs, and this work brings it to the tools agents use.