Skip to main content
Glama

Add a block

add_block

Append one block to a project's script. Read the subo://guide/authoring resource before writing blocks: block type names, section names and the piping rules are not guessable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNo
minNo
nameNo
typeYes
colorNo
scaleNo
promptYes
optionsNo
sectionNo
positionNo
requiredNo
continue_No
hide_whenNo
image_urlNo
show_whenNo
project_idYesProject id, from list_projects or create_project.
rank_top_nNo
action_kindNo
answer_styleNo
preconditionNo
when_correctNo
action_configNo
text_analysisNo
thumbnail_urlNo
when_incorrectNo
randomize_optionsNo
calculated_formulaNo
correct_answer_idsNo
correct_answer_indexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / $defs / ActionConfigSchema / properties / fire_scope / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "respondent",
      +      "session"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / BlockOptionSchema / properties / anchor_position / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "const": "last",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / ContinueSchema / properties / after / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "pause",
      +      "click"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / ContinueSchema / properties / pause / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / text_analysis
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Text Analysis"
      +}
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare the safety profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false), so the bar is lower. The description adds the append semantics and the mandatory pre-read step, which is useful behavioral context, but says nothing about failure modes, duplicate blocks, or how the mutation affects existing script content.

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 tight sentences, zero filler, with the core action front-loaded and the prerequisite immediately following. Every sentence earns its place.

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?

No output schema exists, so return values need not be explained, and the guide reference is a reasonable strategy for the unguessable vocabulary. However, for a 29-parameter mutation tool, deferring essentially all parameter meaning to an external resource leaves the description thin relative to the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 3% across 29 parameters, so the description carries the burden — yet it explains no individual parameter. It does acknowledge that block type names, section names, and piping rules are unguessable and points to the authoring guide, which is a partial mitigation for the `type`/`section` params, but the vast majority of parameters remain semantically opaque.

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 gives a specific verb and resource ('Append one block to a project's script'), which cleanly separates it from update_block, delete_block, and replace_script by the 'append' action. It stops short of naming any sibling explicitly, so a reader must infer the distinction, keeping it at a 4 rather than a 5.

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 states a clear prerequisite — read the subo://guide/authoring resource before writing — and explains why (block types, section names, and piping rules are unguessable). That is solid when-to-use context, but there is no guidance on when to prefer this over replace_script, plan_script, or generate_script, so no exclusions are offered.

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.