Skip to main content
Glama

Search reference data

search_entities
Read-only

Resolve a name to an id for a field on a request form — vendors, customers, departments, locations, cost centers, categories, taxes and products. Call this to turn a user's words ('Acme', 'Marketing') into the id that submit_request expects.

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

Input Schema

NameRequiredDescriptionDefault
queryNoName or partial name to search for. Empty (or omitted) returns only a count: with no workflow_id, the team's total for this entity type (use that for "how many X do I have?"); with one, what that form lists.
entity_typeYesThe type of entity to search for.
workflow_idNoThe workflow (or pipeline) ID this entity is being resolved for. Scopes results to the workflow's accounting organization so they match the form's dropdown. Pass it whenever you are filling a field for a specific workflow/submission, including a form opened in an earlier turn. Left out, the search reads the user's selected organization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"Name or partial name to search for. Empty (or omitted) returns only the team's total count for this entity type — use that for \"how many X do I have?\"."New value: +"Name or partial name to search for. Empty (or omitted) returns only a count: with no workflow_id, the team's total for this entity type (use that for \"how many X do I have?\"); with one, what that form lists."
    • changedInput schema / properties / workflow_id / description
      Previous value: -"The workflow (or pipeline) ID this entity is being resolved for. Scopes results to the workflow's accounting organization so they match the form's dropdown. Pass it whenever you are filling a field for a specific workflow/submission."New value: +"The workflow (or pipeline) ID this entity is being resolved for. Scopes results to the workflow's accounting organization so they match the form's dropdown. Pass it whenever you are filling a field for a specific workflow/submission, including a form opened in an earlier turn. Left out, the search reads the user's selected organization."
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered; the description adds the resolution-to-id purpose and the submit_request dependency. It does not disclose result shape (name plus id vs. ranked matches), match/fuzzy behavior, or result limits — the empty-query count behavior lives in the schema, not the description.

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, front-loaded with the core action, then the usage trigger. Every clause carries information: the entity list, the id output, and the submit_request handoff. No filler.

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 3-parameter read-only resolver with full schema coverage and no output schema, the description does the key remaining job of naming the return value (an id) and its consumer. Minor gap: it never mentions that results may include multiple matches or how to disambiguate, which matters when a partial name matches several entities.

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 coverage is 100%, including detailed enum and workflow_id scoping semantics, so the baseline is 3. The description's domain examples ('Acme', 'Marketing') reinforce that query accepts human names/partial names, but add little beyond the schema's own 'Name or partial name' wording.

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 precise verb and outcome ('resolve a name to an id') plus the resource class, enumerating the entity domains (vendors, customers, departments, locations, cost centers, categories, taxes, products) and naming the downstream consumer, submit_request. An agent can distinguish this from list_workflows or search_team_users without opening the schema.

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?

'Call this to turn a user's words ("Acme", "Marketing") into the id that submit_request expects' gives a clear triggering condition and a concrete downstream dependency. It does not state when NOT to use it or name an alternative for non-form lookups, so it stops short of full routing guidance.

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