Skip to main content
Glama

Get agent

get-agent
Read-onlyIdempotent

Fetch a single counterparty (agent) by id.

WHEN TO USE:

  • To look up a customer, vendor, or employee record

  • To check an agent's contact info and source linkage before creating an event

  • To verify whether a counterparty exists before assigning agent_id on an event

PARAMETERS:

  • id (required): Agent id (agt_ prefixed ULID)

RETURNS: An AgentResponse with id, agent_type, name, legal_name, contact fields, source/external_id provenance, and is_active status.

RELATED TOOLS:

  • list-agents — browse agents with filters

  • agent-activity — events and transactions for an agent

  • create-event-block — record a business event with this agent as counterparty

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-agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAgent id (agt_ prefixed)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/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 covered. The description still adds value by disclosing the return shape (AgentResponse with agent_type, name, legal_name, contact fields, source/external_id provenance, is_active) that annotations cannot convey. It omits error behavior for a missing or malformed id, which keeps it short of a 5.

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?

Bold section headers make the definition scannable and the core action is front-loaded in the first line, ahead of the WHEN TO USE detail. The RETURNS block is slightly verbose but earns its place because no output schema exists; the rest has no filler.

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?

With no output schema, the RETURNS section is necessary and present, listing the returned fields well enough for an agent to consume the result. The remaining gap is failure behavior — what happens when the id is unknown — which matters for a lookup tool an agent may call speculatively before assigning agent_id.

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?

Only one parameter and schema description coverage is 100%, so the baseline is 3. The description repeats the schema's format hint and refines it slightly by spelling out that the agt_ prefix denotes a ULID, adding marginal meaning beyond the structured field.

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 ("Fetch a single counterparty (agent) by id") and implicitly separates itself from the sibling list-agents, which is explicitly named as the browse alternative. An agent can distinguish the single-record lookup from the filtered-list tool without opening 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Enumerates three concrete when-to-use triggers (contact lookup, verifying existence before assigning agent_id, checking provenance before creating an event) and pairs them with a RELATED TOOLS section that routes to list-agents, agent-activity, and create-event-block. The selection conditions are explicit rather than inferred.

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.