Skip to main content
Glama

AgentDrives: choose a tool, API or provider

Choose a provider

choose_provider_for_task
Read-onlyIdempotent

Use when you or the user must choose a tool, API or provider for a task (send email, take payments, host a database…): send the task in a few plain words ('send an invoice') with filters if they matter. Returns the products our agent drove for it, ranked by how far an agent got on its own (sign-up, key, the work, paying), each with what happened and its sign-up, docs and MCP links. Read-only, no key needed; 5 by default, up to 25; a product by name: search_tools.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "choose_provider_for_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskNoThe task in plain words, e.g. 'send an invoice'; or send capability
briefNotrue (default): each product with its next steps; false: every field
limitNoHow many products, 1 to 25 (default 5)
accessNoOnly products our agent got into without a person
surfaceNoOnly products an agent can work by api, mcp, cli or sdk; a comma list wants all, e.g. mcp,cli
categoryNoOnly this category id or name (list_categories)
min_levelNoOnly products at this agent level (0-5) or higher
pays_withNoOnly products that take x402, mpp or card; a comma list takes any, e.g. x402,mpp
capabilityNoInstead of task: a capability id (GET /api/capabilities) or name
self_signupNotrue: only products our agent got a key for without a person

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedOutput schema / properties / result / description
      Removed value: -"Choose a provider"
  2. Changed10 schema fields changed
    • changedInput schema / properties / access / description
      Previous value: -"signup_without_human: only products our agent signed up for and got into without a person (no browser login by a person)"New value: +"Only products our agent got into without a person"
    • changedInput schema / properties / brief / description
      Previous value: -"true (the default): each product with its next steps, under 8 KB for five; false: every field, with can_do, checks, connect, pay_rails and cite"New value: +"true (default): each product with its next steps; false: every field"
    • changedInput schema / properties / capability / description
      Previous value: -"A capability of the shared vocabulary instead of task: its id (e.g. from GET /api/capabilities) or its name, e.g. 'Send a transactional email'"New value: +"Instead of task: a capability id (GET /api/capabilities) or name"
    • changedInput schema / properties / category / description
      Previous value: -"Only this category: an id or name from list_categories (e.g. 'invoicing')"New value: +"Only this category id or name (list_categories)"
    • changedInput schema / properties / limit / description
      Previous value: -"How many products to return, 1 to 25 (default 5)"New value: +"How many products, 1 to 25 (default 5)"
    • changedInput schema / properties / min_level / description
      Previous value: -"Only products at this agent level or higher: 0 Read-only, 1 Needs a person, 2 Gets in, 3 Does the work, 4 Runs on its own, 5 Autonomous"New value: +"Only products at this agent level (0-5) or higher"
    • changedInput schema / properties / pays_with / description
      Previous value: -"only products that take this way to pay: x402 or mpp (agent-native rails our drive met or the product documents) or card (a card checkout); a comma list takes any one, e.g. x402,mpp"New value: +"Only products that take x402, mpp or card; a comma list takes any, e.g. x402,mpp"
    • changedInput schema / properties / self_signup / description
      Previous value: -"true: only products our agent signed up for and got a key on its own, without a person"New value: +"true: only products our agent got a key for without a person"
    • changedInput schema / properties / surface / description
      Previous value: -"only products that offer this way for an agent to work them: api, mcp (an MCP server), cli or sdk; a comma list wants every one, e.g. mcp,cli"New value: +"Only products an agent can work by api, mcp, cli or sdk; a comma list wants all, e.g. mcp,cli"
    • changedInput schema / properties / task / description
      Previous value: -"The task in plain words, e.g. 'send an invoice' or 'create a contact'. Send this or capability"New value: +"The task in plain words, e.g. 'send an invoice'; or send capability"
  3. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive, and the description restates 'Read-only, no key needed', which is redundant rather than additive. It does add genuinely new behavioral context: the ranking basis ('how far an agent got on its own: sign-up, key, the work, paying'), the per-product payload ('what happened and its sign-up, docs and MCP links'), and the default/ceiling for result count.

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?

The trigger and the routing hint are front-loaded, and every sentence carries information. The second sentence is long and parenthetical-heavy, packing ranking logic, return contents and pagination limits into one clause chain, which costs some scannability.

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?

For a 10-parameter tool with full schema coverage, annotations and an output schema, this is close to complete: trigger, input phrasing, ranking, default and cap are all covered. The minor redundancy about return values (already in the output schema) and the absence of guidance on combining filters keep it just below full marks.

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 description coverage is 100%, so every parameter is already documented, and the description largely repeats schema facts (plain-word task, default 5, up to 25, name lookup via search_tools). It adds only light framing that filters are optional ('if they matter'); it does not explain the access enum value or the comma-list semantics of surface/pays_with beyond what the schema states. Baseline 3.

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 ('choose a tool, API or provider for a task') with concrete examples ('send email, take payments, host a database') and describes the output nature (products ranked by agent progress). It is clearly distinguishable from search_tools, which it explicitly names as the by-name lookup path.

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?

Opens with an explicit trigger ('Use when you or the user must choose a tool, API or provider for a task') and routes the alternative case ('a product by name: search_tools') to a sibling. It also tells the caller how to phrase input ('send the task in a few plain words … with filters if they matter'), which is real selection guidance.

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.

Resources