Skip to main content
Glama

Resolve a phrase to exact document ids

resolve_source
Read-only

Turn a phrase that names or describes a document (for example "GDPR right to erasure") into ranked exact document ids with title and date. An EU act the phrase names ranks first. Input: query and limit. Returns results (id, title, date); an empty list means no match.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax results
queryYesPhrase naming or describing a document

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond that: results are ranked, a phrase-named EU act is boosted to the top, and an empty list is the defined no-match signal. It omits ranking/ties behavior across multiple candidate acts, but the added context is substantial.

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 compact sentences with the core purpose front-loaded, an example inline, and the return/empty case last. Every sentence carries information; nothing is redundant padding.

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?

With no output schema, the description usefully specifies the return fields (id, title, date) and the empty-list semantics, which the agent otherwise could not know. Only minor gaps remain, such as how ranked ties are broken or whether results are ever truncated.

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%, with min/max length and the 1-20 bounds for limit already documented, so the baseline is 3. The description only restates "Input: query and limit" and adds no new meaning about how limit interacts with ranking or whether results are truncated.

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?

States a concrete verb+resource: turn a phrase into ranked exact document ids with title and date. The example ("GDPR right to erasure") plus the ranking rule ("An EU act the phrase names ranks first") make the tool's behavior identifiable. It stops short of naming the sibling search tool it differs from (e.g. source_search), so sibling differentiation is implied rather than stated.

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

Usage Guidelines3/5

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

The example phrase conveys the intended input shape, which implies when to use it: you have a phrase and need canonical ids. There is no explicit when-to-use/when-not guidance and no pointer to alternatives such as source_search for broader retrieval, leaving that routing to inference.

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