Skip to content

Dynamic Tool Loading

Fp Switchboard offers 996+ tools across 32 services. Loading all of them into an AI session at once consumes 40-60K tokens of context window — often causing errors. Dynamic tool loading solves this.

When connecting to the unified endpoint (/mcp/unified), all tools load at connection time:

ModeTools LoadedContext UsageRisk
Standard~996~40-60K tokensCompaction errors, degraded performance
Dynamic3 meta-tools~1.5K tokensNone

Add ?dynamic=true to your unified endpoint URL:

https://api.switchboard.fpdigital.ai/mcp/unified?dynamic=true

Instead of 996+ tool schemas, your AI receives 3 lightweight meta-tools:

ToolPurposeReturns
unified_list_servicesList available servicesService names, tool counts, connection status
unified_get_toolsGet tools for one serviceFull tool schemas for the requested service
unified_call_toolExecute any toolProxies the call to the actual service tool
  1. AI connects and receives 3 meta-tools (~1.5K tokens)
  2. User asks: “Check my Gmail inbox”
  3. AI calls unified_list_services to see Google is connected
  4. AI calls unified_get_tools with service: "google" to get Gmail tools
  5. AI calls unified_call_tool with tool: "gmail_search" and the parameters

Claude.ai web connections automatically use deferred loading — a complementary approach:

  • All tool names are sent, but schemas are deferred (defer_loading: true)
  • Claude fetches full schemas on-demand via tools/get when it needs them
  • Works with Claude’s built-in Tool Search feature
  • ~95% token reduction compared to standard loading
ScenarioRecommendation
Claude Desktop with all services?dynamic=true on unified endpoint
Claude.ai webAutomatic deferred loading (just connect)
Single service (e.g., just Gmail)Per-service endpoint: /mcp/google
Curated tool setCustom Bundle with selected tools
Cursor / VS Code?dynamic=true or per-service endpoints
{
"mcpServers": {
"fp-switchboard": {
"command": "npx",
"args": ["-y", "@anthropic-ai/mcp-remote",
"https://api.switchboard.fpdigital.ai/mcp/unified?dynamic=true"],
"env": {
"MCP_HEADERS": "authorization:Bearer fps_unified_YOUR_TOKEN"
}
}
}
}

Use the same URL with ?dynamic=true in your MCP server configuration.

FeatureStandardDynamicDeferredBundle
Token usage~60K~1.5K~3KVaries
All tools availableYesYes (on demand)Yes (on demand)Selected only
Extra API calls02-3 per task1 per tool0
Best forSmall tool setsFull access, low contextClaude.ai webFocused workflows