Skip to main content
Glama

Reject several suggested Requests

reject_query_suggestions

Reject several pending query suggestions in one call, under one reason. Each is rejected one at a time, exactly as reject_query_suggestion would; a suggestion that is not found or not pending is reported beside its id and never stops the rest. Use it after a publish seeded more Requests than the project's goal needs. Choose either suggestion_ids (use list_query_suggestions first), or datasource_id with all_pending: true to snapshot all pending IDs for that datasource, optionally keeping except_suggestion_ids. The forms cannot be combined. The datasource form returns true rejected/refused counts, bounded ID lists with truncated when needed, and remaining_pending counted after the decisions; concurrent publications can add more pending Requests.

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": {
      "reason": "<reason>"
    },
    "name": "reject_query_suggestions"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesExplanation recorded for every suggestion rejected in this call
all_pendingNoMust be true with datasource_id; reject the pending IDs captured at the start of this call
datasource_idNoUUID of the datasource whose pending suggestions to reject; requires all_pending: true and excludes suggestion_ids
suggestion_idsNoUUIDs of the pending suggestions to reject, in the order to reject them
except_suggestion_idsNoOptional UUIDs to keep pending in the datasource form

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing partial-failure semantics ('a suggestion that is not found or not pending is reported beside its id and never stops the rest'), snapshot semantics ('captured at the start of this call'), and a concurrency caveat about publications adding more pending Requests. Annotations only supply the safety flags; the description supplies the actual operational behavior.

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?

Purpose is front-loaded, then failure semantics, then the two selection modes, then the return shape — a logical progression with little waste. It is dense and long for a single tool, but nearly every sentence carries distinct operational information.

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 five-parameter bulk mutation with no output schema, the description covers the important cases: partial failures, snapshot timing, form exclusivity, and the shape of the datasource-form return (counts, truncated lists, remaining_pending). It does not describe what the suggestion_ids form returns, which is a small remaining gap.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents each parameter, but the description adds real meaning: mutual exclusivity of suggestion_ids vs datasource_id+all_pending, the snapshot-at-start behavior of all_pending, and the keep-pending role of except_suggestion_ids. Only minor detail (ordering guarantees for except_suggestion_ids) is left unstated.

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 ('Reject several pending query suggestions in one call, under one reason') and explicitly positions itself against the singular sibling ('exactly as reject_query_suggestion would'), so an agent can distinguish bulk from single rejection without inspecting 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 triggering context ('after a publish seeded more Requests than the project's goal needs'), names the prerequisite tool ('use list_query_suggestions first'), and states the two mutually exclusive selection modes with the rule that 'the forms cannot be combined.' When-to-use and how-to-select are both covered.

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