Skip to main content
Glama

gateway.request_capability

Recommends the right CLI or MCP server for a task by matching a natural-language description against installed and provisionable options; it does not start or install anything.

Instructions

Recommend the right tool for a task — describe what you need in natural language. Examples: 'scrape a website', 'search Slack messages', 'query Postgres', 'browse the web'. Matches against installed CLIs and 90+ provisionable MCP servers and returns ranked candidates; it does NOT start anything — call gateway.provision to actually install/start the recommended server. Prefer this over gateway.provision when you don't already know the exact server name.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "gateway.request_capability"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesNatural language description of the capability needed (e.g., 'I need to scrape a website', 'browser automation')
available_clisNoOptional: CLIs known to be available in the environment

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv3.0.1
    • addedInput schema / properties / available_clis / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / available_clis / items
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / available_clis / type
      Removed value: -"array"
    • addedInput schema / properties / query / minLength
      Added value: +1
  2. First observedv1.18.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the safety burden well: it says it returns ranked candidates and does NOT start anything, which tells the agent this call is side-effect free and must be chained with gateway.provision. It stops short of stating whether repeated calls are cached, how large the candidate list is, or whether results include confidence/reason fields.

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-loaded with the core action, then examples, then the provision boundary and routing rule — each sentence does real work. The four-example list partially duplicates the examples already present in the query schema description, which is minor redundancy.

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

Completeness3/5

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

The tool has no output schema, so the description must cover return values, and it only says 'returns ranked candidates' without indicating what a candidate contains (name, id, description, score) — information the agent needs to pick one and chain to gateway.provision. The forward reference to gateway.provision helps, but the result-handling story is incomplete.

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% and the query parameter already documents itself with examples, so the baseline applies. The description adds the natural-language framing and the 'describe what you need' phrasing but never mentions the optional available_clis parameter, so it adds no meaning beyond the schema.

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 and resource ('Recommend the right tool for a task') and reinforces it with concrete example queries. It also explicitly separates itself from sibling gateway.provision by declaring it does not start anything, so an agent can distinguish it from provision/connect_server/catalog_search without opening schemas.

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?

Gives an explicit routing rule: prefer this over gateway.provision when you don't already know the exact server name, and tells the agent to follow up with gateway.provision once a candidate is chosen. Both the when-to-use and the when-not-to-use condition are stated.

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