Skip to main content
Glama

export_agent

Export agent configurations to JSON files for backup, sharing, or migration. Save locally or upload to XBackbone storage.

Instructions

Export an agent's configuration to a JSON file and optionally upload it. Use import_agent to recreate the agent later, or clone_agent for a quick copy. Use list_agents to find agent IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesThe ID of the agent to export.
output_pathNoOptional: Path to save the exported JSON file (e.g., my_agent.json). Defaults to agent_{agent_id}.json.
return_base64NoOptional: If true, return the JSON content as base64 string in the response. Defaults to false.
upload_to_xbackboneNoOptional: If true, upload the exported file to XBackbone. Defaults to false.
xbackbone_urlNoOptional: URL of the XBackbone instance. Uses XBACKBONE_URL environment variable if not provided.
xbackbone_tokenNoOptional: Token for XBackbone authentication. Uses XBACKBONE_TOKEN environment variable if not provided.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successYes
file_pathNo
agent_dataNo
upload_urlNo
base64_contentNo
Behavior4/5

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

Annotations only provide a title, so the description carries the full burden. It clearly describes the core behavior (export to JSON file with optional upload) and mentions the optional upload functionality to XBackbone. However, it doesn't mention potential side effects, rate limits, or authentication requirements beyond the XBackbone parameters.

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?

The description is perfectly concise with three focused sentences: the core functionality, when to use alternatives, and a prerequisite. Every sentence earns its place with no wasted words, and the most important information (what the tool does) comes first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the presence of a comprehensive input schema (100% coverage) and an output schema (implied by context signals), the description provides exactly what's needed: clear purpose, usage guidelines, and behavioral context. The description doesn't need to explain return values since an output schema exists.

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%, so the schema already fully documents all 6 parameters. The description adds no additional parameter semantics beyond what's in the schema descriptions. The baseline of 3 is appropriate when the schema does all the parameter documentation work.

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 clearly states the specific action ('Export an agent's configuration to a JSON file and optionally upload it') and distinguishes it from sibling tools by explicitly naming alternatives (import_agent, clone_agent, list_agents). It specifies both the resource (agent configuration) and output format (JSON file).

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?

The description provides explicit guidance on when to use this tool versus alternatives: 'Use import_agent to recreate the agent later, or clone_agent for a quick copy. Use list_agents to find agent IDs.' This gives clear context for tool selection and prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/oculairmedia/Letta-MCP-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server