Skip to main content
Glama

Find the tool for a task

commercebook_tool_search
Read-onlyIdempotent

Find the tool and the action for a task in plain words, with the arguments it takes: for example "ship an order", "post a request", "watch a category". The owner's situation in plain words ("I have a garage full of used tools") also answers way, the way to sell or buy that fits it. Call it when no listed tool plainly fits. No key needed, and it changes nothing. role (buyer, seller, warehouse or all) ranks that role's tools first. Each tool only reads, adds, changes or pays, and takes action and that action's arguments. With a key, or with ?role=buyer, seller, warehouse or all, the server also lists the separate tools that list, order, pay and ship.

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": "commercebook_tool_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNoRank the tools of this role first: buyer, seller, warehouse or all.
limitNoHow many matches to answer, 1 to 10 (3 by default).
queryYesWhat you are trying to do, or the owner's situation, in plain words.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"How many matches (3 by default)."New value: +"How many matches to answer, 1 to 10 (3 by default)."
    • changedInput schema / properties / query / description
      Previous value: -"What you are trying to do, in plain words."New value: +"What you are trying to do, or the owner's situation, in plain words."
    • changedInput schema / properties / role / description
      Previous value: -"Rank the tools of this role first."New value: +"Rank the tools of this role first: buyer, seller, warehouse or all."
  2. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true and openWorldHint=false, so the safety profile is covered; the description's "it changes nothing" mostly restates that. It does add genuinely new behavioral context — no key is required, role ranks that role's tools first, the default answer count is 3, and with a key or ?role= the server exposes additional list/order/pay/ship tools — but return shape and match behavior remain undescribed.

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

Conciseness3/5

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

Purpose and the trigger condition are front-loaded, which is good, but the middle is a run-on tangle — "also answers way, the way to sell or buy that fits it" and the ?role query-string aside read as unedited notes. Several clauses would need rewriting or removal to earn their place.

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?

For a three-parameter router with full schema coverage and no output schema, an agent needs to know what comes back and in what form; the description states results include a tool, an action and that action's arguments, which is adequate. However the conditional auth/role-dependent catalog expansion is only hinted at, leaving the agent unsure how results differ with and without a key.

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 the schema already documents query, role (with enum and ranking semantics) and limit (1-10, default 3). The description's mention that role "ranks that role's tools first" and that limit is "3 by default" duplicates what the schema states rather than adding syntax or edge-case detail.

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

Purpose4/5

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

The opening sentence gives a specific verb and resource: find the tool (and its action plus arguments) for a task described in plain words, with concrete examples like "ship an order". It also routes away from siblings with "Call it when no listed tool plainly fits," though the sentence about the owner's situation "also answers way, the way to sell or buy that fits it" is garbled enough to blur the purpose slightly.

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

Usage Guidelines4/5

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

"Call it when no listed tool plainly fits" is an explicit trigger condition that effectively functions as the alternative-selection rule for a discovery tool. The stated input forms (a task phrasing or an owner's situation) further clarify when the tool applies, but no named sibling tools are given as alternatives to contrast against.

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.