Skip to main content
Glama

find_entity

Resolve a free-text user reference (e.g. "Alexei", "scene 5", "the close-up of Irina") to concrete entity ids. Returns ranked matches across characters, scenes, and shots. Pass kind to constrain the search domain. Always call this when the user names something by description instead of by id.

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": {
      "movieId": "<movieId>",
      "query": "<query>"
    },
    "name": "find_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoOptional domain to restrict the search.
queryYesThe user's free-text reference.
movieIdYesThe movie id (uuid) this call operates on. Get it from create_movie or list_movies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

No annotations, so the description carries the full burden. It does disclose the key behavioral trait that the result is a ranked multi-candidate set spanning three entity kinds, prompting disambiguation, but says nothing about no-match behavior, result count, or ranking criteria.

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?

Four short sentences, front-loaded with the core action and result shape, then usage trigger. Every clause carries information; nothing is redundant with the schema.

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 three-parameter read tool with fully documented schema and no output schema, the definition covers purpose, trigger, and result form adequately. It stops short of telling the agent how to handle multiple ranked candidates or zero results, which is the main residual gap.

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; the description earns a bump by exemplifying what a 'query' actually looks like ('Alexei', 'scene 5', 'the close-up of Irina'), showing it accepts descriptive phrases, not just names. It also clarifies that `kind` is a constraining filter rather than a required domain selector.

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 transformation: 'Resolve a free-text user reference ... to concrete entity ids', plus the result shape ('ranked matches across characters, scenes, and shots'). The closing clause 'instead of by id' separates it from the id-based list_* siblings without needing to name them.

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?

'Always call this when the user names something by description instead of by id' is an explicit, actionable trigger condition. It lacks an explicit when-not or a named alternative for direct-id lookups, but the inverse condition is clearly implied.

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