Skip to main content
Glama

publish_agent

Idempotent

Publishes or unpublishes an AI agent after validating all schemas, ensuring configuration integrity before activation changes.

Instructions

Publish agent (validates all schemas first)

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>",
      "action": "<action>"
    },
    "name": "publish_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesPublish or unpublish the agent
agent_idYesAgent UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.2.4
    • changedInput schema / properties / action / description
      Previous value: -"Ação: publicar ou despublicar"New value: +"Publish or unpublish the agent"
    • changedInput schema / properties / agent_id / description
      Previous value: -"UUID do agente"New value: +"Agent UUID"
  2. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety and repeatability are covered. The description contributes one genuinely new behavioral fact — that all schemas are validated before publishing — but says nothing about failure behavior, whether validation also applies to the unpublish action, or what state the agent ends up in.

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?

A single front-loaded phrase with no wasted words, and the validation caveat is placed immediately after the core action. It is arguably too terse for a tool with two distinct modes, but nothing in it is redundant.

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

Completeness3/5

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

For a simple two-parameter, fully-schema-documented tool with annotations covering safety, the description is minimally adequate. It is missing the unpublish mode and any routing advice relative to validate_agent_schemas, which are the main gaps an agent would hit.

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 both parameters (agent_id, action with its publish/unpublish enum) are documented in the schema itself, so the baseline is 3. The description adds no meaning beyond that, and by framing the tool only as 'publish' it under-represents the unpublish mode that the action parameter exposes.

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?

The description pairs a specific verb (publish) with a specific resource (agent) and adds a scope note that schemas are validated first. It does not, however, differentiate itself from close siblings such as validate_agent_schemas or publish_process_definition, and it never mentions that the same tool also unpublishes.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no mention of the alternative of running validate_agent_schemas separately first. The parenthetical hints at a precondition but does not state what to do if validation fails or when unpublish is the appropriate action.

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

Deploy Server

Other Tools