Skip to main content
Glama

get_entity

Resolve a named or indirectly referenced entity and return its identity, known facts, and relationships so you can ground answers before advising or asking who or what it is.

Instructions

Get everything known about a named thing — who or what it is, the facts about it, and how it connects to other things.

A "thing" is any subject this store holds knowledge about: a person, an organisation, a project, a place, a product, a system — whatever the store is used for. This is the "tell me about X" tool.

Call this WHENEVER a named thing is mentioned or alluded to and knowing it would improve your answer — including indirect references like "my manager", "the Helsinki office", "the payments service". Call it before advising on anything involving that thing, and before asking who or what something is — you may already know.

Facts come back most relevant first, each flagged with is_subject. True means the fact is ABOUT this thing; false means it only mentions it. Treat the difference as real when you answer: "Alex's transfer was approved by Robin" is worth knowing when asked about Robin, but it is a fact about Alex, and reporting it as something you know about Robin would be wrong. Other relationship values are the same kind of role — this entity's part in this fact, free text, not a directed graph edge. Do not infer who did what to whom from the wording.

If several entity rows share that name under different types (the extractor labelled one thing two ways), facts from all of them come back. Hyphens, underscores, and stray punctuation count as the same letters only when that does not join two names already stored as separate rows. If this store has no entity by that name, facts that mention the wording still come back (is_subject false) rather than an empty miss. found is whether an entity row exists, not whether anything is known.

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>"
    },
    "name": "get_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe thing's name. Resolve an indirect reference to a name first if you can (e.g. via get_context or a prior fact).
typeNoOptional type filter, only for disambiguation when one name refers to two different things (a person and a project both called 'Mercury'). Types are whatever this store uses — omit it to match any type, which is almost always what you want.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.34.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.30.1

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: it explains result ordering (most relevant first), the meaning of is_subject for facts that merely mention vs. describe the entity, the role of other relationship values, that facts from duplicate type rows are merged, that name-only matches are returned with is_subject false rather than an empty miss, and that found reflects entity-row existence only.

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?

The one-line purpose and the WHENEVER clause are front-loaded and the call-to-action is easy to find. Some paragraphs, especially the sentence about hyphens and punctuation joining names, are dense and hard to parse on first read, and the text runs longer than strictly necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by describing the return payload (facts with is_subject flags, found semantics, merged duplicate rows). Limits and truncation behavior are unstated, but nothing essential to calling the tool correctly is missing.

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%, so both parameters are already documented, including the advice to omit type except for genuine disambiguation. The description adds only indirect meaning, via the name-normalization rules for hyphens, underscores and punctuation; there is no additional guidance on the name or type parameters themselves.

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?

"Get everything known about a named thing" names a specific verb and resource, and the follow-up sentence enumerates exactly what comes back (identity, facts, connections). The self-description as "the 'tell me about X' tool" makes the intent unmistakable and distinct from event/schema/search siblings.

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?

Guidance is explicit and even proactive: call it whenever a named thing is mentioned or alluded to, including indirect references like "my manager", and call it before advising or asking who something is. It does not, however, explicitly route away from alternatives such as search_knowledge or get_context when the reference is unresolved.

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