Skip to main content
Glama

import_state

Recreate an agent from an export_state document.

Input Schema

NameRequiredDescriptionDefault
stateYes
request_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and closed-world, so the agent knows this is a non-idempotent write. The description adds the export/import pairing but says nothing about whether an agent is created anew or replaced, whether repeated calls duplicate agents, or whether the request_id is an idempotency key — meaningful gaps given idempotentHint=false.

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?

One short sentence, front-loaded with the verb and resource, with no filler. It is arguably too terse rather than bloated, but nothing in it is wasted.

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

Completeness2/5

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

With a nested, free-form object parameter, a mutation annotation profile, and an unexplained request_id, the description should do more work. An output schema exists so return values need not be covered, but the input contract and side effects are underspecified for a state-restoring tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and 'state' is an untyped object with additionalProperties, so the schema gives the agent almost nothing. The description only restates that it comes from an export_state document and never explains the structure of 'state' or the purpose of 'request_id', leaving both parameters effectively undocumented.

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?

States a specific verb ('recreate') and resource ('an agent') and ties it to the export_state document, which separates it from create_agent in spirit. It doesn't explicitly say what happens to any existing agent, but the core action is unmistakable.

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 phrase 'from an export_state document' implies this is the counterpart to export_state and only usable with such a document. However, it never says when to use this versus create_agent, nor what preconditions (existing agent name collision, permission) apply.

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.