Skip to main content
Glama

get_entity

Retrieve complete Backstage entity details—metadata, spec, annotations, and resolved relations like consumed APIs, dependencies, ownership, and system membership—using an entityRef found via catalog search.

Instructions

Get full details for a Backstage entity including metadata, spec, annotations, and resolved relations (APIs consumed/provided, dependencies, system membership, ownership). Use search_catalog first to find the entityRef.

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

Input Schema

NameRequiredDescriptionDefault
entityRefYesEntity reference in 'kind:namespace/name' format, e.g. 'component:default/payment-service' or 'api:default/payment-api'
includeRelationsYesResolve and include related entities (APIs, dependencies, owners). Set false for a faster, lighter response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the response payload shape (metadata, spec, annotations, resolved relations), which is genuinely useful, but says nothing about permissions, behavior on a missing or invalid entityRef, response size, or whether includeRelations triggers costly graph traversal. Read-only nature is only implied by 'Get.'

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, zero waste, with the payload contents front-loaded and the prerequisite call placed last as an actionable follow-up. Each sentence earns its place.

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 two-parameter read tool with no output schema, the description compensates well by enumerating return contents and the resolved-relations concept. It is nearly complete; only error behavior and permission expectations are missing, which are minor for a read operation.

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 already carry descriptions, including the performance tradeoff for includeRelations. The description reinforces 'resolved relations' and points to search_catalog as the source of entityRef, which adds modest meaning beyond the schema but no new format or syntax detail.

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?

The description states a specific verb and resource ('Get full details for a Backstage entity') and enumerates exactly what is returned: metadata, spec, annotations, and resolved relations. The parenthetical breakdown of relation types (APIs consumed/provided, dependencies, system membership, ownership) makes the scope unambiguous and clearly distinct from sibling tools like search_catalog.

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?

It gives explicit prerequisite routing: 'Use search_catalog first to find the entityRef,' which tells the agent which sibling to call to obtain the required parameter. It does not state when-not to use this tool or mention lightweight alternatives like list_api_specs for narrower needs, so it falls short of full when/when-not coverage.

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