Skip to main content
Glama

template_get

Read-onlyIdempotent

A template rendered for this model: its guidance (read it — it says what to ask, what to adapt and what never to copy blindly), the blocks taken, and the exact calls that would build them — add_section, add_ledger, write_section YAML, entries_add, and chart_add for the charts the pattern is read by — already adapted to your choices. blocks takes optional blocks by id (core blocks always come, with whatever the chosen ones require), and omit leaves out a standard block, one taken by default; pick chooses from a menu such as a chart of accounts, or names the members of an open list such as a market's supply sources and demand sinks (one lower-case word each); bind maps a template row to a row the model already has, leaving the template's out and rewriting everything that read it; rename moves a row or a whole section to the name the model uses; currency replaces USD. A template lands as one section — the statements arrive as financials.income, financials.balance and the rest under one Financials — and at plants that module somewhere else instead: at of group.acquired for a second company's statements beside the first's, at of assets.north for a pattern that belongs to one asset, an empty at only when the model already holds the pattern's sections at the top level. rename and bind take the template's own names (income.revenue) or the planted ones (financials.income.revenue); a relative rename stays inside the module, and the planted name is how a section is moved out of it. Inputs come empty for the scaffold pass unless inputs is placeholders. The calls are dry-run on a copy of the model and the result says the rung they would reach, the checks that would fail, the lint they would add and the existing rows they would overwrite. Edit the YAML to fit the business — drop lines, rename, replace placeholders, add the lines the template lacks — then write it with write_section yourself, and add the template's charts with chart_add once their rows are there.

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": {
      "model": "<model>",
      "id": "<id>"
    },
    "name": "template_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNoThe section to plant the whole module under, instead of the template's own: `group.acquired`, `assets.north`. Empty string plants it flat at the top level, which is for a model that already holds these sections there.
idYesA template id from template_list.
bindNoTemplate row → existing row: `{"income.revenue": "sales.total"}`. The template row is not written; rows that read it read the model's.
omitNoStandard blocks to leave out, by id. A standard block is taken unless omitted — the commodity balance's costs, which carry its cost curve — so omit one only when the model has no data for it, and say so.
pickNoChoices from the template's menus, by menu name: `{accounts: ["cash", "receivables"]}` from a closed list, or `{sources: ["escondida", "grasberg"]}` naming the members of an open one — a saved template's list too (`{assets: ["north", "south", "east"]}`), one section planted per name. A list inside another names each outer name's own: `{mines: ["north", "south"], "pits@north": ["a", "b"], "pits@south": ["c"]}`; a level deeper, each path of names, outermost first (`"benches@north/a": ["top", "low"]`); a path not given its own takes the list's own name (`pits`), else the author's.
modelYesModel uid (`model_…`), from model_list.
blocksNoOptional blocks to take, by id.
dryRunNoRun the calls on a copy and report what the model would say. Default true.
inputsNoWhether inputs carry the template's placeholder numbers. Default empty: the scaffold pass.
renameNoTemplate row or section → the name it should have: `{"income": "pnl", "fixed_assets.capex": "fixed_assets.capital_spend"}`.
variantNoThe convention for each of the template's variants, by name: `{standard: "ifrs"}` for the financial statements under IFRS. A variant not named takes its default; template_list says which variants a template has.
currencyNoThe model's currency, replacing USD in every unit: `EUR`, `GBP`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare a safe, idempotent read; the description goes much further. It discloses that the calls are dry-run on a copy of the model, that the result reports the rung reached, failing checks, added lint, and existing rows that would be overwritten, and that a template lands as one section (financials.income, financials.balance) unless `at` plants it elsewhere. That is behavior an agent cannot get from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is one dense paragraph with heavy em-dash nesting and parenthetical asides; the core action and the follow-up workflow are not front-loaded, and several clauses (block ids, menu paths, currency replacement) read as prose restatements of the schema. Almost no sentence is pointless, but the structure makes the key guidance hard to extract.

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?

With 12 parameters, nested objects, a pick-path mini-language, and no output schema, the description does the necessary work: it explains what the returned render contains, the dry-run default, and the section-planting model. Coverage is strong, though the `pick` path grammar and `variant` handling are explained more clearly in the schema properties than in the description body.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the property descriptions are already rich, so the baseline is 3. The description still adds meaning beyond the schema in places — the `at` planting rules (group.acquired, assets.north, empty string for flat), the rule that a relative rename stays inside the module and the planted name is how a section is moved out, and the placeholder-inputs scaffold pass. Some of this is restated schema text rather than new information.

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 clearly states this returns a template rendered for the model — its guidance text, the blocks taken, and the concrete build calls (add_section, add_ledger, write_section, entries_add, chart_add). It is distinguishable from template_list (ids come from there) and from the mutating siblings it feeds, but the opening is buried in a comma-spliced clause rather than a clean verb+resource statement.

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 explicitly routes the agent to next steps: edit the YAML, then write it with write_section yourself, and add charts with chart_add once rows exist. It also explains dry-run semantics and the `at`/`rename`/`bind` decision points. It does not state when to prefer this over template_audit or template_list beyond the id reference.

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