MCP Tool Definition Apex

Use this skill to implement custom Apex MCP tool classes by extending McpToolDefinition from the salesforce-mcp-lib package. Covers inputSchema(), validate(), and execute() override patterns, JSON schema construction, SOQL and DML inside tools, error handling, and tool registration in the Apex REST endpoint. Trigger keywords: McpToolDefinition, extend McpToolDefinition, Apex MCP tool, mcp-tool Apex, JSON-RPC tool, salesforce-mcp-lib tool class. NOT for the initial server installation and proxy setup (see salesforce-mcp-server-setup), NOT for MCP Resources or Prompts, NOT for OmniStudio or Flow-based tool definitions.

BanibrataChatterjee Updated

File contents

BanibrataChatterjee/AwesomeSalesforceSkills/tree/main/skills/agentforce/mcp-tool-definition-apex commit 8345620b72

Frequently asked questions

npx skillmds@latest add banibratachatterjee/mcp-tool-definition-apex