Skip to main content
Glama

agent_export

Export an agent record as a versioned spec (org admin). Returns the spec and the same as YAML, ready to commit to a repo. No ids, no secrets: an MCP server entry names a vault secret, never holds one.

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": {
      "slug": "<slug>"
    },
    "name": "agent_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesAgent record slug (agent-<label> or <label>)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does well: it discloses the org-admin authorization requirement, describes both output forms, and explains that exported data contains no IDs or secrets because MCP server entries only name a vault secret. It could say more about whether the operation is read-only or whether exports are logged or rate-limited.

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 description is short and front-loads the primary action and permission requirement. The phrase "Returns the spec and the same as YAML" is slightly awkward, but the overall structure is efficient and earns its place.

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 export tool with an output schema, this description is nearly complete: it covers authorization, output shape, and secret handling. Any remaining return-value details are appropriately left to the 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 slug parameter is fully documented in the schema. The description does not add any further meaning about accepted slug formats or lookup behavior beyond what the schema already provides.

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?

The description uses a specific verb and resource: "Export an agent record as a versioned spec." It also states the output form, a spec plus YAML ready to commit to a repo, which clearly distinguishes it from a plain agent_get or agent_import operation.

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?

The description provides clear usage context by noting the org-admin requirement and the repo-commit use case. It does not explicitly name alternatives such as agent_get for viewing or agent_import for loading, so it stops short of full when-to-use/when-not-to-use guidance.

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.