Skip to main content
Glama

agent_import

Make the org's agent record match a spec: create it, or update the fields that differ (org admin). Without apply this is a dry run that lists the changes. Goes through agent.create / agent.update, so every screen and permission they apply still applies; kind cannot change.

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": {
      "spec": "<spec>"
    },
    "name": "agent_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesThe spec as YAML or JSON text, as agent_export returns it
applyNofalse (default) only returns the plan; true performs it

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the dry-run default, the admin requirement, that scheduling/screen and permission rules of agent.create/agent.update still apply, and that kind is immutable. The one gap is ambiguity about removals — "match a spec" versus "update the fields that differ" leaves unclear whether fields absent from the spec are cleared or left alone.

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?

Three tight sentences, front-loaded with the core action, then the dry-run default, then the behavioral caveats. Nothing is redundant or padded.

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 two-parameter write tool with no annotations, this covers mode semantics, permissions, delegation to the underlying create/update path, and an immutable field, and the output schema handles return values. The remaining shortfall is the unresolved question of how fields omitted from the spec are treated.

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 coverage is 100%, so both parameters are already documented, and the description adds little beyond restating that apply=false returns a plan and true performs it. The spec round-trip hint ("as agent_export returns it") also duplicates the schema's own wording rather than extending it.

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?

"Make the org's agent record match a spec: create it, or update the fields that differ" names a specific verb-plus-resource and frames it as reconciliation rather than a plain create/update. It also points at the underlying agent.create / agent.update operations, which implicitly separates it from the sibling agent_create and agent_update tools without naming them as alternatives.

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?

It clearly states the default mode ("Without apply this is a dry run that lists the changes") and a prerequisite ("org admin"), which is actionable context. It stops short of explicitly saying when to choose agent_create or agent_update instead of this reconciler, so the routing decision is only implied.

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.