Skip to main content
Glama

Get template roles and fields

get_template
Read-onlyIdempotent

Gets one template's signing order, its roles in order (role_id, label, signer or CC), and the prefilled fields to fill by label. Use the role_ids and labels to prepare or send it.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe template's id, from search_templates.

Output Schema

NameRequiredDescriptionDefault
templateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / id / description
      Added value: +"The template's id, from search_templates."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "template": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "format": "uuid",
      +          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +          "type": "string"
      +        },
      +        "prefilled_fields": {
      +          "description": "Fields you fill in when you send, through `prefilled_values`.",
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "key": {
      +                "description": "The normalized label.",
      +                "type": "string"
      +              },
      +              "label": {
      +                "type": "string"
      +              },
      +              "required": {
      +                "type": "boolean"
      +              },
      +              "type": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "label",
      +              "key",
      +              "required",
      +              "type"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "roles": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "file_requests": {
      +                "description": "Files this signer is asked to upload.",
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "name": {
      +                      "type": "string"
      +                    },
      +                    "position": {
      +                      "maximum": 9007199254740991,
      +                      "minimum": -9007199254740991,
      +                      "type": "integer"
      +                    },
      +                    "required": {
      +                      "type": "boolean"
      +                    }
      +                  },
      +                  "required": [
      +                    "name",
      +                    "required",
      +                    "position"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "in_person": {
      +                "description": "Templates with in-person signers cannot be sent through the API.",
      +                "type": "boolean"
      +              },
      +              "label": {
      +                "type": "string"
      +              },
      +              "role": {
      +                "enum": [
      +                  "signer",
      +                  "cc"
      +                ],
      +                "type": "string"
      +              },
      +              "role_id": {
      +                "description": "Use this in `recipients[].role_id` when you send.",
      +                "format": "uuid",
      +                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "role_id",
      +              "label",
      +              "role",
      +              "in_person",
      +              "file_requests"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "signing_order": {
      +          "enum": [
      +            "parallel",
      +            "sequential"
      +          ],
      +          "type": "string"
      +        },
      +        "title": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "title",
      +        "signing_order",
      +        "roles",
      +        "prefilled_fields"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "template"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description's added value is limited to what the call returns structurally (ordered roles, signer vs CC, label-keyed fields), which is useful orientation but partially duplicated by the output schema. No mention of not-found behavior or error conditions.

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 short sentences with the payload description first and the intended follow-up action second; no filler, no restating of the title, and nothing that could be cut without losing information.

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 simple read-only getter with an output schema and full annotation coverage, this is essentially complete: the agent knows what it retrieves and what to do with the result. Only edge-case behavior (invalid or unknown template id) is unaddressed.

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?

There is a single required parameter with 100% schema description coverage, and the schema already tells the agent the id is a UUID "from search_templates." The description adds no format, sourcing, or failure semantics beyond that, so the baseline 3 applies for a high-coverage one-parameter schema.

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 uses a concrete verb and resource ("Gets one template") and enumerates the returned contents: signing order, ordered roles with role_id/label/signer-or-CC, and prefilled fields by label. That level of specificity clearly separates it from a generic reader like get_document, though it never names a sibling tool outright.

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 clear downstream context: "Use the role_ids and labels to prepare or send it," which points an agent toward the preparation/sending tools that consume this output. It offers no explicit exclusions (e.g., "don't use this to fetch documents"), so it stops short of a full when/when-not treatment.

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.