Skip to main content
Glama

Create agent

create-agent

Create a counterparty record (customer, vendor, employee, etc.). The (source, external_id) pair is a dedup key — a second insert with the same pair returns 409. Use update-agent to patch fields.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "Acme Office Supplies",
      "agent_type": "vendor",
      "is_1099_recipient": true
    },
    "name": "create-agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
leiNoLegal Entity Identifier (ISO 17442).
dunsNoDun & Bradstreet DUNS number.
nameYesDisplay name shown in lists and on transactions.
emailNo
phoneNo
sourceNoProvenance: 'native' (created in-app), 'quickbooks' / 'xero' / 'plaid' (synced from integration). Drives reconciliation behavior.native
addressNoFree-form address object (e.g. {"line1": "...", "city": "...", "state": "...", "postal_code": "..."}).
metadataNo
is_activeNoInactive agents stay in history but can't be picked for new txns.
agent_typeYesRelationship category: 'customer' | 'vendor' | 'employee' | 'owner' | 'supplier' | 'government' | 'lender' | 'self' | 'other'.
legal_nameNoFull registered legal name (when different from `name`).
external_idNoSource system primary key — used to match on subsequent syncs.
is_1099_recipientNoMarks a vendor as 1099-eligible: a flag a year-end 1099 summary will read. No report reads it yet.
registration_numberNoRegistry-issued company number (e.g. state corp file number).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, but the description adds the crucial non-obvious behavior: the (source, external_id) pair is a dedup key and a duplicate insert returns 409. It does not discuss required permissions or the response body, so it is strong but not complete.

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 tight sentences with zero filler: identity and dedup constraint first, alternative tool second. Every clause carries information an agent needs before calling.

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 14-parameter creation tool with rich schema descriptions and no output schema, the definition covers the highest-risk behaviors (duplicate handling, routing to update). It stops short of describing permissions or what the 409 response payload contains, which is a minor remaining gap.

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 79%, so the baseline is 3; the description earns an extra point by explaining the compound (source, external_id) semantics and the resulting 409 conflict, which the individual parameter descriptions do not state. The 12 other parameters, including agent_type and the nested address object, are left to the schema.

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 ("Create a counterparty record") and immediately clarifies the resource domain with examples (customer, vendor, employee). An agent can distinguish it from the sibling update-agent without inspecting either schema.

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?

Explicitly routes field modifications to update-agent ("Use update-agent to patch fields"), which is a concrete alternative and condition. Missing explicit when-not-to-use guidance for edge cases (e.g., when the entity already exists in another role), which keeps it from a 5.

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.