Skip to main content
Glama

get_techdocs

Retrieve a Backstage entity's TechDocs documentation as plain text, syncing the render when docs are stale or a force sync is requested; the entity needs the backstage.io/techdocs-ref annotation.

Instructions

Retrieve the TechDocs documentation for a Backstage entity. Triggers a render sync if needed, then returns the documentation as plain text. The entity must have a 'backstage.io/techdocs-ref' annotation configured.

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

Input Schema

NameRequiredDescriptionDefault
entityRefYesEntity reference, e.g. 'component:default/payment-service'. Use get_entity first to confirm the entity has techdocs configured (check for 'backstage.io/techdocs-ref' annotation).
forceSyncYesForce a TechDocs re-render before fetching. Use when docs may be stale.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.8/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 disclosure burden. It usefully reveals a side effect ('Triggers a render sync if needed') and the return format ('plain text'), but says nothing about permissions, how long a sync takes, or what happens when the annotation is absent or rendering fails.

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?

Three short sentences, each doing work: purpose first, then the sync behavior, then the prerequisite. There is no filler or repetition.

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 and no annotations, the description covers purpose, a meaningful side effect, return type, and the key prerequisite. The only real gap is error/failure behavior when the annotation is missing or rendering fails.

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 schema already explains both entityRef and forceSync, including the 'use when docs may be stale' case. The description's 'render sync if needed' framing mildly reinforces the default lazy-sync versus forced-sync distinction, but adds no syntax or format meaning of its own.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs a specific verb and resource, 'Retrieve the TechDocs documentation', with a defined scope, 'for a Backstage entity'. This clearly separates it from get_entity or get_api_spec by resource type, though it never names a sibling to contrast with explicitly.

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 states a hard precondition that acts as a when-to-use rule: the entity must carry a 'backstage.io/techdocs-ref' annotation. It stops short of naming alternatives for entities that lack that annotation, so the routing guidance is implicit rather than explicit.

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