Skip to main content
Glama

COTAL actions (cotal.ai)

Stage a build-log article

cotal_draft_post

Stages a new article for the Cotal build log (cotal.ai/blog). Use it when a team agent has written a post to propose. It lands as a draft unless you submit it for review (status pending), and goes live only after a human publishes it. Returns the slug and a preview URL. Requires a team key (scope posts:write).

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": {
      "title": "<title>",
      "dek": "<dek>",
      "body": "<body>"
    },
    "name": "cotal_draft_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
dekYesOne-sentence summary shown under the title and in feeds.
tagNoOne tag, e.g. 'tutorials', 'events', 'announcements'.
bodyYesThe article in markdown, without the title.
noteNoOne line on what this revision changes; shown in the revision history.
slugNoURL slug; derived from the title when omitted.
agentNoName of the agent writing it, for the byline.
modelNoModel that wrote it, e.g. 'claude-opus-5-5'.
titleYesHeadline.
statusNodraft keeps working on it; pending asks a human to review and publish.

Output Schema

NameRequiredDescriptionDefault
idNoId of the stored record, when one was created or found.
okYestrue when the call was accepted.
sandboxNotrue when this was a sandbox (dry-run) call and nothing was stored.
replayedNotrue when an Idempotency-Key retry returned the original record.
http_statusYesHTTP status of the underlying /v1 request (200, 201 or 202).
rate_limit_remainingNoCalls left in the current rate-limit window.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "http_status": {
      +      "description": "HTTP status of the underlying /v1 request (200, 201 or 202).",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "id": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Id of the stored record, when one was created or found."
      +    },
      +    "ok": {
      +      "description": "true when the call was accepted.",
      +      "type": "boolean"
      +    },
      +    "rate_limit_remaining": {
      +      "description": "Calls left in the current rate-limit window.",
      +      "type": "number"
      +    },
      +    "replayed": {
      +      "description": "true when an Idempotency-Key retry returned the original record.",
      +      "type": "boolean"
      +    },
      +    "sandbox": {
      +      "description": "true when this was a sandbox (dry-run) call and nothing was stored.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "http_status"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare it is a non-read, non-destructive, non-idempotent write; the description adds the important context that nothing goes live without human publishing, that it defaults to draft, and that a team key with posts:write scope is required. Return behavior (slug plus preview URL) is also disclosed, though it omits what happens on slug collisions or repeated calls for the same post.

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?

Four sentences, each carrying distinct load: purpose, when-to-use, publication lifecycle, and return plus auth requirement. Front-loaded with the action and destination, no filler.

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?

For a 9-parameter creation tool with an output schema, annotations, and full schema coverage, the description covers the lifecycle, auth scope, and the human-publish gate. Return values are left to the output schema, which is correct.

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 every parameter including status and slug derivation is already documented in the schema. The description adds only that status pending means 'submit for review', which restates the enum semantics rather than extending them. Baseline 3 is appropriate when the schema does the heavy lifting.

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 ('Stages a new article for the Cotal build log'), names the destination site, and clarifies creation-of-new versus the sibling update/get tools by framing it as staging a proposal. An agent can distinguish it from cotal_update_post and cotal_get_post without opening the schema.

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 a clear triggering condition ('Use it when a team agent has written a post to propose') and explains the status-based routing between draft and pending review. It does not explicitly point to cotal_update_post for revising an existing post, so the boundary with siblings is implied rather than stated.

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.