Skip to main content
Glama

Create or edit an agent

agents_save
Destructive

Create an agent (no id) or edit one (with id). Setting autoPublishPosts arms publishing without human approval and needs the publish scope; everything else needs write.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "agents_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoThe agent id to edit; omit to create.
nameNoName, up to 60 characters.
feedsNoUp to 5 RSS or Atom URLs: each wake reads what they published since the last one and proposes a post per item worth posting (waiting for approval unless autoPublishPosts). An agent with feeds wakes only when one has something new.
promptNoThe standing brief, up to 4000 characters.
statusNo
planDaysNoWake days, 0=Sunday.
timezoneNoIANA timezone.
planHoursNoWake hours.
subredditsNoUp to 5 subreddits.
connectionIdsNoAccounts to post through; null means all.
idempotencyKeyNoOn a create: Any string unique to this one intended thing (a UUID you keep). A retry with the same key answers what the first call made, with replayed: true, and makes nothing new. Derive it from the thing, not the attempt, so every agent and every restarted run that means the same one sends the same key.
monthlyCapCentsNoMonthly spend cap in cents; null = no cap. The studio shows it in credits.
autoPublishPostsNoDANGEROUS: publish with no human approval. Needs the publish scope.

Output Schema

NameRequiredDescriptionDefault
strategyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / feeds
      Added value: +{
      +  "description": "Up to 5 RSS or Atom URLs: each wake reads what they published since the last one and proposes a post per item worth posting (waiting for approval unless autoPublishPosts). An agent with feeds wakes only when one has something new.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / idempotencyKey
      Added value: +{
      +  "description": "On a create: Any string unique to this one intended thing (a UUID you keep). A retry with the same key answers what the first call made, with replayed: true, and makes nothing new. Derive it from the thing, not the attempt, so every agent and every restarted run that means the same one sends the same key.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "strategy": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "autoPublishPosts": {
      +          "type": "boolean"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "monthlyCapCents": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "planDays": {
      +          "items": {
      +            "type": "number"
      +          },
      +          "type": "array"
      +        },
      +        "planHours": {
      +          "items": {
      +            "type": "number"
      +          },
      +          "type": "array"
      +        },
      +        "prompt": {
      +          "type": "string"
      +        },
      +        "spentThisMonthCents": {
      +          "type": "number"
      +        },
      +        "status": {
      +          "type": "string"
      +        },
      +        "timezone": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "strategy"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds real value beyond them by naming the two required scopes and warning that autoPublishPosts arms publishing without human approval. The main gap is that it never says whether an edit is a partial merge or a full replacement of omitted fields — a critical trait for a save tool with zero required 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?

Two short sentences, front-loaded with the create/edit discriminator, then the authorization consequences. No filler and every clause carries decision-relevant information.

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 13-parameter, highly-documented tool with an output schema and safety annotations, the description covers the mode split and permission requirements well. It falls slightly short on update semantics (partial vs overwrite) and on what a replayed result implies on the edit path, but nothing essential to selecting the tool is missing.

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 92%, so the schema already explains id, name, feeds, idempotencyKey, monthlyCapCents and the dangerous autoPublishPosts flag. The description's only parameter-level addition is the scope coupling for autoPublishPosts, which the schema's own description nearly states already; the 13 parameters are otherwise left to the schema.

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?

States a specific verb and resource and, crucially, splits the tool's two modes: create when no id is supplied, edit when one is. An agent can determine which mode it will hit without opening the schema, and the title/name ('agents_save') plus this sentence separate the tool from agents_list and agents_wake.

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?

Gives the concrete selector between the two behaviors ('no id' vs 'with id') and states the scope prerequisites for each branch, which effectively tells the caller when the call will succeed. It stops short of naming alternatives (e.g. use agents_list to find an id first, or agents_wake to trigger a run), so there is no explicit when-not 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.