Skip to main content
Glama

get_agent

Read-onlyIdempotent

Fetch a single agent by ID to retrieve details on an AI assistant, person, or shared resource such as a meeting room. Agent keys can only read their own agent record.

Instructions

Fetch a single agent by ID. An agent represents an AI assistant, human, or shared resource (e.g. a meeting room). Agent keys may only read their own agent.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "get_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYesAgent ID to fetch

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.8.4
    • addedInput schema / properties / agent_id / maxLength
      Added value: +128
    • addedInput schema / properties / agent_id / minLength
      Added value: +1
    • addedInput schema / properties / agent_id / pattern
      Added value: +"^[A-Za-z0-9_-]*$"
  2. First observedv1.2.5

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, and closed-world behavior, so the bar is lower, yet the description still adds the permission scoping rule for agent keys and explains the domain model of what an agent can represent. It does not describe what the response contains or how a forbidden/inaccessible agent is reported, which keeps it out of the top band.

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 operation stated first and the scoping caveat after. No filler, no redundancy, and every clause contributes information the caller 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 one-parameter, read-only lookup with full schema coverage and complete annotations, the description supplies what is needed to invoke it correctly. The only gap is the absence of any hint about the returned payload or error behavior for out-of-scope IDs, which matters given there is no output schema.

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% and the single agent_id parameter is fully specified with pattern and length constraints, so the baseline is 3. The description only adds "by ID," which merely restates the parameter rather than adding format or sourcing guidance (e.g., where to obtain the ID).

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?

"Fetch a single agent by ID" names a specific verb and resource, and the scope word "single" tells the agent this is a point lookup rather than a listing. The follow-up sentence defining what an agent is (AI assistant, human, or shared resource) adds domain clarity. It stops short of an explicit contrast with sibling tools such as get_calendar or get_event, but the resource is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The line "Agent keys may only read their own agent" gives a real prerequisite/scoping rule the caller must satisfy, which is useful eligibility guidance. However, there is no statement of when to prefer this over alternatives or what happens when the ID belongs to another agent (error vs. empty). Usage is implied rather than spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.