Skip to main content
Glama

federation_search

Read-onlyIdempotent

Route a natural-language intent to the right platform on the ComOS network — the first thing to call. Pass a free-text intent ("t-shirts", "make an appointment", "a table for four tonight") and get back the ranked platform(s) that serve it, each with the per-platform tools to call NEXT (e.g. bookings → appointment_search). This returns a ROUTE, not a transaction: it tells you where to go; you then act on that platform with the chosen tenant. An intent no platform serves returns an empty route (unroutable: true), never a silent default. Fast and deterministic — the same intent always routes the same way. An intent about prompts ("is there a prompt that opens a shop?") returns a prompt_library pointer — introspection_prompt_library to search ComOS's governed prompts, federation_prompt_run to run one — even when no platform routes it. Returns: A route: ranked platforms (platform_id, label, why_matched, score, entry_points) plus unroutable:true when no platform serves the intent. Example: call federation_search with arguments {}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax ranked platforms to return (default: all matches)
intentYesThe natural-language need to route, e.g. "make an appointment"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark it read-only, non-destructive, idempotent, and closed-world; the description adds important behavior: deterministic routing, explicit empty-route/unroutable handling, and a special prompt-library pointer even when no platform routes. These are concrete traits beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the purpose and first-call guidance, then layers route-vs-transaction, empty-route, determinism, prompt handling, and return shape in a logical order. It is somewhat long, and the final empty-arguments example is a wasted/misleading sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description usefully names return fields (platform_id, label, why_matched, score, entry_points, unroutable) and explains the prompt fallback. It is nearly complete, though the incorrect empty-arguments example leaves a minor invocation gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description explains the intent parameter with several examples and calls it free-text, but does not add meaning for the limit parameter and ends with a misleading 'arguments {}' example despite intent being required.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Route') and resource ('natural-language intent to the right platform'), and explicitly positions itself as 'the first thing to call' before acting on a platform. It distinguishes routing from transacting and names next-step tools (appointment_search, federation_prompt_run), so an agent can identify it among siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says when to use it ('first thing to call'), what it returns vs what to do next ('you then act on that platform'), and routes prompt-related intents to introspection_prompt_library/federation_prompt_run. It also specifies the no-match behavior (empty route, unroutable:true) rather than a silent default.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.