Skip to main content
Glama

resolve_entities

Resolve batches of named entity mentions to Wikidata QIDs using label matching, domain/class filters, homonym scoring, and disambiguation fingerprints.

Instructions

Resolve a batch of named entity mentions to Wikidata QIDs using deterministic label matching, domain P31/P279 class filtering, homonym scoring, and disambiguation fingerprints.

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": {
      "entities": "<entities>"
    },
    "name": "resolve_entities"
  }
}

Input Schema

NameRequiredDescriptionDefault
entitiesYesList of entity mentions to resolve in batch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful behavior: matching is deterministic, domain classes are constrained via P31/P279, and homonyms are scored with disambiguation fingerprints. However, it does not say what happens to unresolved or low-confidence mentions, whether results include scores or just QIDs, or whether the operation is idempotent/cacheable.

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?

A single front-loaded sentence with no filler; every clause (deterministic matching, class filtering, homonym scoring, fingerprints) adds information. It is dense with jargon like 'disambiguation fingerprints' that could be plainer, keeping it from a 5, but it is efficiently sized.

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 tool with nested parameters but no output schema and no annotations, the description explains the resolution method adequately but omits what a result object looks like (QID plus candidates/scores?), how ambiguity is surfaced to the caller, and failure behavior for unresolved mentions. Those gaps matter for interpreting the tool's output correctly.

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 every nested field (mention, domain, class_qids, max_candidates, alternate_labels) documented in the schema itself. The description reinforces that domain filtering maps to P31/P279 classes and that resolution is batched, but adds no syntax, interaction rules (e.g., domain vs. class_qids conflict), or default behavior beyond the schema. Baseline 3 is appropriate.

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 specific verb ('Resolve') and resource ('named entity mentions to Wikidata QIDs') and adds method detail (label matching, P31/P279 filtering, homonym scoring). An agent can tell exactly what the tool does, but the description never contrasts it with the likely-overlapping sibling 'ground_entities', so it falls short of the sibling-differentiation bar for a 5.

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

Usage Guidelines2/5

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

The word 'batch' implies this is for multiple mentions at once, but there is no explicit when-to-use guidance, no prerequisites (e.g., network/Wikidata dependency), and no statement about when another tool such as ground_entities would be preferred. Like the calibration MID example, this is purpose-only with no routing guidance.

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