Skip to main content
Glama

Reorder the blocks of an agenda

reorder_blocks
Idempotent

Puts the agenda's blocks into the order given.

block_ids must contain every current block id exactly once — none missing, none extra, none repeated. This only reorders: it cannot add, remove or edit a block. get_agenda returns the current ids.

Returns the full updated agenda.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
block_idsYesEvery current block id, exactly once, in the order you want them to run.
edit_tokenYesThe edit_token returned by create_agenda.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes
blocksYesThe blocks in the order they run.
share_urlYesThe read-only agenda with the live timer; safe to give to attendees.
expires_atYesISO 8601. null when the agenda is saved to an account and does not expire.
total_secondsYesSum of every block's duration_seconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "blocks": {
      +      "description": "The blocks in the order they run.",
      +      "items": {
      +        "properties": {
      +          "block_type": {
      +            "description": "Internal classification; never mention it to the user.",
      +            "enum": [
      +              "standup",
      +              "discussion",
      +              "decision",
      +              "q_and_a",
      +              "break",
      +              "opening",
      +              "closing",
      +              "other",
      +              null
      +            ],
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "description": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "duration_seconds": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "id": {
      +            "description": "Stable 8-letter id: what update_block, remove_block, reorder_blocks and after_block_id take.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "title": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "title",
      +          "duration_seconds",
      +          "block_type",
      +          "description"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "expires_at": {
      +      "description": "ISO 8601. null when the agenda is saved to an account and does not expire.",
      +      "format": "date-time",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "share_url": {
      +      "description": "The read-only agenda with the live timer; safe to give to attendees.",
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "title": {
      +      "type": "string"
      +    },
      +    "total_seconds": {
      +      "description": "Sum of every block's duration_seconds.",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "title",
      +    "total_seconds",
      +    "expires_at",
      +    "share_url",
      +    "blocks"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true and destructive=false, but the description adds real value on top: it states the operation is purely a reorder with no add/remove/edit side effects and discloses that the full updated agenda is returned. The strict 'exactly once' invariant is also a behavioral constraint the agent must respect.

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?

Front-loaded with the core action, then constraints, then return value. Well organized and short, though the 'none missing, none extra, none repeated' clause overlaps the schema description and is mildly redundant.

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 two-parameter, high-coverage schema with an output schema present, the description covers the action, the input invariant, the source of ids, and the safety profile. Nothing an agent needs to invoke it correctly 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 coverage is 100%, and the schema already documents both edit_token (from create_agenda) and block_ids (every id exactly once, in order). The description restates those constraints with emphasis ('none missing, none extra, none repeated') and adds the useful pointer to get_agenda, but does not add new syntactic or format detail, so the baseline 3 fits.

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 ('Puts the agenda's blocks into the order given') and immediately delimits it from the other mutation siblings by declaring it only reorders and cannot add, remove or edit a block. An agent can distinguish it from add_block/remove_block/update_block without opening any 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 condition for use (supply every current block id) and routes the agent to get_agenda to obtain those ids. It stops short of an explicit when-not/alternative comparison against siblings, so it is strong context without full routing.

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.

Resources