Skip to main content
Glama

instantiate_template

Instantiate an automation template (from list_templates) — validates the spec against the template's own schema, re-runs credential/origin preflight, builds the graphs + schedules on the caller's account, and returns nextSteps. Failures arrive as a structured error result naming the missing credentials/origins.

Input Schema

NameRequiredDescriptionDefault
specYesField values matching the template's fields list
templateIdYesA template id from list_templates

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full load. It does disclose real behavior beyond the schema: server-side validation against the template's schema, credential/origin preflight, creation of graphs and schedules on the caller's account, and a structured error result naming missing credentials/origins. It still omits reversibility/idempotency and permission requirements, which matter for a tool that provisions schedules. Rich but incomplete; 3 rather than 4 given the total absence of annotations.

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?

One dense sentence, front-loaded with verb+resource, then ordered clauses for validation, preflight, provisioning, return value, and error shape. No filler or restated title.

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?

No output schema exists, and the description compensates by naming the returned nextSteps and the failure surface (structured errors listing missing credentials/origins). Given the nested, template-dependent spec object, this is nearly complete; only idempotency/repeat-invocation behavior is unaddressed.

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%, so the baseline is 3, but the description adds meaning: spec is validated against the template's own schema (a dynamic, per-template shape) and templateId must come from list_templates. That clarifies the nested-object parameter beyond the schema's terse wording.

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?

States a specific verb (instantiate) and resource (automation template), names where templateId comes from (list_templates), and enumerates the concrete effects: graph/schedule build-out on the caller's account. An agent can distinguish this from create_graph, which builds nodes manually rather than from a template.

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?

Positions the tool in a workflow by pointing to list_templates as the source of templateId, and the "re-runs credential/origin preflight" phrasing implies prerequisites must already be satisfied. It never states when NOT to use it or contrasts it with create_graph/start_run for manual construction, so it stops short of explicit routing.

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