Skip to main content
Glama

log_retrieval_feedback

Score or annotate previous knowledge base search results using query_id. Provide feedback score, notes, or both to improve retrieval quality.

Instructions

Score or annotate a prior kb_search result by its query_id (retrieval telemetry, issue #5). Supply user_feedback_score, notes, or both; an omitted field is left unchanged (cannot be reset to null). No effect unless LORE_HARD_NEGATIVE_MINING=true on a PostgreSQL backend.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
query_idYesquery_id returned by a prior kb_search call.
user_feedback_scoreNoInteger relevance/quality score for the retrieval. Optional; omit to leave unchanged.
notesNoFree-text note about the retrieval (truncated at 4000 chars). Optional; omit to leave unchanged.
Behavior4/5

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

With no annotations, the description carries the full burden. It reveals that omitted fields remain unchanged and cannot be reset to null, and that the tool is conditional on backend configuration. This is good, though could mention error scenarios if query_id is invalid.

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?

Two sentences: first succinctly states purpose and parameters, second adds a crucial condition. No fluff, every sentence adds value.

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?

Covers core behavior and conditions well, given no output schema or annotations. Could mention expected return (likely success/failure) or that query_id must exist, but this is reasonable for a simple feedback tool.

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%, and the description does not add new info beyond what's already in the schema parameters. The baseline of 3 is appropriate since the schema already defines the meaning.

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?

Clearly states its purpose: scoring or annotating a prior kb_search result using its query_id. Distinguishes from sibling tools like get_retrieval_telemetry, which read telemetry, making it unique as a feedback-writer.

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?

Explicitly ties usage to a prior kb_search result via query_id and discloses a critical condition: no effect unless LORE_HARD_NEGATIVE_MINING=true. However, does not explicitly state when not to use (e.g., if backend not configured) or contrast with other feedback mechanisms.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/davidgut1982/lore-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server