Skip to main content
Glama

Make a draft from a template

create_draft_from_template
Idempotent

Makes a DRAFT agreement from one of the team's active templates, filling each of the template's roles with a person (role is the role key from get_template; name and email; locale en-CA or fr-CA optional). Optional title (defaults to the template name). Nothing is sent and nobody is emailed: the draft waits under Drafts. Optional fields: values for the template's named fields (name from get_template; value is text, a date as YYYY-MM-DD, or true or false for a checkbox; locked true means the signer cannot change it, otherwise it is a default they may edit). Needs the template id and one person for every role; refuses an archived template, a missing role, an unknown role, a field name used twice, an unknown field name, and any value for a signature or initials field.

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>",
      "recipients": "<recipients>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "create_draft_from_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo
fieldsNo
recipientsYes
templateIdYes
idempotencyKeyYesA new random key for each change you mean to make. Sending the same key again with the same input returns the first answer and changes nothing; the same key with a different input is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations with non-obvious behavior: nothing is sent, nobody is emailed, and the draft waits under Drafts. It also discloses the full set of validation refusals (archived template, missing/unknown role, duplicate field name, unknown field, value on signature/initials), which an agent cannot infer from readOnlyHint=false and destructiveHint=false.

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?

Purpose is front-loaded in the first clause, followed by behavior, then parameters, then refusal conditions — a sensible order. It is a single dense paragraph with some run-on parentheticals, but essentially every sentence carries information the agent needs.

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 five-parameter mutation with no output schema, the description covers preconditions, defaults, value formats, and error cases, which is enough to call it correctly. The one gap is that it never says what comes back (e.g. the new draft's id), which an agent would need for follow-up calls.

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

Parameters5/5

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

Schema description coverage is only 20%, but the description compensates thoroughly: 'role' is the role key from get_template, locale is en-CA or fr-CA, title defaults to the template name, and fields take a name from get_template with a text/YYYY-MM-DD/boolean value where locked means the signer cannot change it. idempotencyKey semantics are already documented in the schema, so no significant parameter is left unexplained.

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 and resource ('Makes a DRAFT agreement from one of the team's active templates') and pins the source of the data to templates, which separates it from the upload-based sibling without needing to name it. The all-caps DRAFT clarifies the output is a draft, not a sent agreement.

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?

Gives clear preconditions (needs the template id and one person for every role) and enumerates the conditions under which it refuses, which tells an agent when the call will not succeed. It never explicitly contrasts with create_draft_from_upload or names an alternative path, so the alternative-selection guidance is implied rather than stated.

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