Skip to main content
Glama

get_template

Fetches a Backstage scaffolder template's full specification, including parameter schema and lookup hints, so you know which tools to call before prompting users for input.

Instructions

Get the full specification for a Backstage scaffolder template, including the parameters JSON Schema and lookupHints. The lookupHints array tells you which tools to call (in parallel) to fetch selectable options (groups, APIs, components) BEFORE asking the user for input. Always present fetched options as numbered lists so the user can pick rather than type. Use this BEFORE run_template.

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

Input Schema

NameRequiredDescriptionDefault
entityRefYesTemplate entity reference, e.g. 'template:default/create-react-app'. Use list_templates to find available templates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations exist, so the description carries the burden and does disclose the return shape: full spec, parameters JSON Schema, and lookupHints. It goes further by explaining the semantics of lookupHints (which tools to call in parallel for selectable options), which is non-obvious behavior. It does not cover error behavior for an invalid entityRef, which keeps it below a 5.

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 definition is front-loaded: what is returned first, then the workflow implications. Every sentence is functional, though the instruction on presenting options as numbered lists is a presentation directive rather than tool semantics and could be trimmed without loss.

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?

With no output schema, the description must explain the return value, and it does so concretely (spec plus parameters JSON Schema plus lookupHints). For a single-parameter read tool this covers everything an agent needs to invoke it and act on the result.

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% and the single entityRef parameter is already documented in the schema with an example and a pointer to list_templates. The description adds no additional parameter meaning, so the baseline of 3 applies.

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 the full specification for a Backstage scaffolder template" names a specific verb and resource, then enumerates the payload (parameters JSON Schema and lookupHints). It is clearly distinguishable from list_templates (discovery) and run_template (execution) by the explicit sequencing statement.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit ordering guidance ("Use this BEFORE run_template") and a downstream workflow rule: call lookupHints tools in parallel to fetch selectable options before prompting the user. It also implies the discovery prerequisite via list_templates in the schema, so an agent knows the full sequence.

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