Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Formify. If you published it, claim ownership there.

Get Template Fields

get_template_fields
Read-onlyIdempotent

Always call this immediately after get_template — before collecting signer details. Reveals whether the template has form fields the user can pre-fill. Each field has: name (key for API calls), label (display only), type (textField, checkbox, combobox, listbox, radioButton), required (the signer must fill it in before they can sign), editable (can be pre-filled via API), readOnly (signee cannot edit), options [{label, value}] for choice fields. If any fields have editable: true, ask the user whether to pre-fill them now (values locked for signer) or leave for the signer. Value format rule: ONLY textField and radioButton take a plain string. ALL other types (checkbox, combobox, listbox) MUST be an array — even for a single value like ["Beginner"]. Never pass an empty string for text fields — omit the field instead. Field names containing tink-scan-id (a scan trigger) or tink-scanned-id- (an image of part of the document) place an image of the signer's identity document in the signed document; a trigger combined with a tink-scanned-id-mrz- attribute on the same field only fills in text. Treat such fields like digital_ink_id_scan: tell the user that a copy of the ID document will be embedded in the signed document and get an explicit yes before the document is sent.

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": {
      "templateId": "<templateId>"
    },
    "name": "get_template_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
templateIdYesUnique identifier of the template

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes well beyond them: it defines each returned attribute, states the array-vs-string value rule, forbids empty strings for text fields, and warns that tink-scan-id fields embed a copy of the signer's ID in the signed document. The requirement for an explicit 'yes' before sending is exactly the kind of consequence disclosure an agent needs.

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 critical sequencing instruction is front-loaded in the first sentence and the field-attribute list is compact and scannable. However, a large trailing block on value formats ('MUST be an array... never pass an empty string') describes how to populate fields elsewhere rather than what this read call does, so not every sentence is strictly load-bearing here.

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 and a one-parameter read-only tool, the description compensates fully by describing the returned field structure, its enumerated types, and the special tink-scan-id cases. An agent has enough to call it correctly and interpret the response.

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% for the single templateId parameter, so the schema already carries the semantics and a 3 baseline applies. The description adds no information about templateId itself; its detailed value-format rules concern how fields are later filled, not this parameter.

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 says the tool 'reveals whether the template has form fields the user can pre-fill' and enumerates the per-field attributes returned, so the verb and resource are concrete. It is clearly template-scoped, which implicitly separates it from get_document_fields/get_file_fields/get_link_fields, but it never names those siblings to make the distinction explicit.

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?

It gives an explicit ordering rule ('Always call this immediately after get_template — before collecting signer details') and a conditional next action ('If any fields have editable: true, ask the user whether to pre-fill them now... or leave for the signer'). The agent knows both when to call and what to do with the result, leaving little to inference.

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