Skip to main content
Glama

Match Entity

match_entity
Read-only

Resolve a single known drug, company, trial, indication, mechanism, target, or development program to the canonical Maven entity.

Use this for single-entity lookup such as "Pfizer", "Keytruda", or "generalized myasthenia gravis". Provide the raw entity name in name and the required entity_type.

A program is the exception: it is a drug in one indication and line, so it has no name of its own. Pass a prog_ id in name, or the drug name with the indication in context (e.g. name="Keytruda", context="NSCLC", entity_type="program"). When that pair covers several lines, the error lists each one with its id so you can pick.

If you have extra identifying context such as sponsor, company, or a disambiguating note, pass that in context rather than packing it into name.

Use search_entities when you are discovering entities by criteria or natural-language filters. Use research_entity after you already know the canonical entity you want to profile.

Financings have no canonical short name; they are not resolvable here. Use search_entities(entity_type="financing", query=...) for criteria-based discovery or get_financings(...) for precise filters by recipient, investor, type, value, or date.

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": {
      "name": "<name>",
      "entity_type": "<entity_type>"
    },
    "name": "match_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesRaw human-readable entity name only (e.g. 'Pfizer', 'Keytruda', 'generalized myasthenia gravis').
contextNoOptional disambiguating hint such as sponsor/company or other identifying context. Keep `name` to the raw entity name and put extra identifying text here.
entity_typeYesType of entity to resolve. `program` is a drug in one indication and line: it has no name of its own, so pass either a `prog_` id or the drug name with the indication in `context`. When that pair covers several lines the error lists them to pick from.
include_hierarchyNoOnly relevant for hierarchical types (indication, mechanism, target). When True (default), the result includes the full ontology hierarchy payload. When False, only parent_name and ontology_level are attached. Set to False when the calling agent does not consume the full lineage.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond that: an ambiguous program pair produces an error that enumerates each line with its id so the caller can pick. It does not cover what happens on a no-match or how fuzzy the resolution is, which keeps it from a 5.

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?

Front-loads the core purpose, then the program exception, then the `context` rule, then sibling routing. Well ordered and every paragraph has a distinct job, though the closing financing paragraph is long relative to a case this tool cannot handle.

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 an output schema present, the description needn't explain return values, and all four parameters are covered between schema and prose. The remaining gap is behavioral: no statement of how an unmatched or low-confidence name is handled, which matters for a resolution 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%, so the baseline is 3. The description does reinforce intent — keep `name` raw and put sponsor/company/disambiguating text in `context` rather than packing it into `name` — but that guidance is largely duplicated in the schema's own parameter descriptions, so the added value over structured data is modest.

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 ('resolve') plus a precise resource ('a single known drug, company, trial, indication, mechanism, target, or development program') to the canonical Maven entity. The enumeration of covered types and the 'single entity' scope make it immediately distinguishable from criterion-based siblings.

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?

Explicitly routes the agent: use `search_entities` for discovery by criteria, `research_entity` once the canonical entity is known, and `get_financings`/`search_entities` for financings since those are not resolvable here. It also names the exception case (programs) and explains both accepted input shapes for it.

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