Skip to main content
Glama

Record feedback on a query

record_query_feedback
Idempotent

Record whether a previously generated query was helpful. This feedback improves future query suggestions. Use the query_id from get_query_history or from the query tool's response.

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_id": "<query_id>",
      "feedback": "<feedback>"
    },
    "name": "record_query_feedback"
  }
}

Input Schema

NameRequiredDescriptionDefault
commentNoOptional comment explaining the feedback (e.g., 'Had to add a date filter')
feedbackYesFeedback value: 'helpful' or 'not_helpful'
query_idYesUUID of the query history entry to provide feedback on

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive, closed-world behavior. The description adds the downstream effect ('improves future query suggestions'), which explains why the write matters. It does not say whether re-recording overwrites prior feedback, though idempotentHint partly covers that.

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

Conciseness5/5

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

Three short sentences: what it does, why it matters, and where the identifier comes from. Nothing is wasted and the action is front-loaded.

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 simple three-parameter feedback write with full annotation coverage and no output schema, this is nearly sufficient: purpose, effect, and input sourcing are all covered. Only the sibling routing to alternative feedback tools is left implicit.

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 baseline is 3, and the description earns an extra point by naming the two concrete sources of the query_id (query history or the query tool's response), which is provenance the schema does not provide.

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 ('Record whether a previously generated query was helpful') and scopes it to feedback on queries, which separates it from the general feedback siblings like send_ekaya_feedback and list_ekaya_feedback.

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?

Gives clear context on where the query_id comes from ('get_query_history or from the query tool's response'), which tells the agent when this tool is reachable. It does not explicitly exclude the general feedback tools, so the agent must infer which feedback channel applies.

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