Skip to main content
Glama

Pin a block

pin_block

Pins a lesson block from anton.app for a week to a family group or one child, so it appears in their app. Identify the block by project/topic/block or by blockPuid and blockPath.

Instructions

Assigns a lesson block on anton.app: pins it for a week, for the whole family group or for one child, who then sees it in the app. Identify the block by project with topic and block (index or title), as list_topics and get_topic_blocks show them, or directly by blockPuid and blockPath. The week defaults to the current one. Pinning the same block again adds another pin. Returns the pin with groupCode, blockPuid, blockPath, weekStartAt and childPublicId. For a reminder that stays on this machine use assign_lesson instead.

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": "pin_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupNoGroup name to operate on. Only needed when the parent belongs to multiple groups. Defaults to the first group or the ANTON_GROUP environment variable.
projectNoCourse project ID, e.g. "c-mat-4". Required when not providing blockPuid/blockPath directly.
blockPathNoBlock path, e.g. "/../c-mat-4/topic-07-brueche/block-02-brueche-zuordnen/block". Required when using blockPuid directly.
blockPuidNoBlock PUID, e.g. "c-mat-4/ro9ajj". Use instead of project/topic/block when known.
childNameNoChild name as configured (e.g. "Emma"). Resolved to publicId automatically.
blockIndexNo0-based block index within the topic.
blockTitleNoPartial block title match (case-insensitive). Alternative to blockIndex.
topicIndexNo0-based topic index from list_topics. Use with project.
topicTitleNoPartial topic title match (case-insensitive). Alternative to topicIndex.
weekStartAtNoISO date of the Monday of the target week, e.g. "2025-09-01". Defaults to the current week's Monday.
childPublicIdNoChild publicId. Alternative to childName when publicId is known.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.1

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the meaningful mutation semantics: "Pinning the same block again adds another pin" (concrete non-idempotent behavior) and enumerated return fields (groupCode, blockPuid, blockPath, weekStartAt, childPublicId). It does not cover permissions, error conditions, or whether a duplicate pin can be removed — hence not a 5.

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?

The description is front-loaded with purpose, then identification routes, then defaults/duplication behavior, then return shape, then the alternative — a logical order with no filler. It is dense but every sentence carries information; the sibling pointer placed last is slightly buried but not wasteful.

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 an 11-parameter, zero-required mutation tool with no output schema, the description supplies what the schema cannot: a return-value summary, the duplicate-pin behavior, and the default week. It remains silent on failure modes and on whether parameters are mutually exclusive, which keeps it short of complete.

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 each of the 11 parameters is already documented in structured form, which sets the baseline at 3. The description adds a useful layer by grouping them into two alternative identification strategies (project/topic/block vs. blockPuid/blockPath) and noting the week defaults to the current one, but it doesn't clarify interaction or exclusivity rules beyond that.

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?

The definition states a specific verb and resource ("Assigns a lesson block on anton.app: pins it for a week") and scopes it precisely to the whole family group or a single child who then sees it in the app. It is clearly distinguishable from assign_lesson, which it explicitly routes local-only reminders to.

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 names the alternative for the contrasting case ("For a reminder that stays on this machine use assign_lesson instead") and tells the agent the two accepted identification routes plus the referenced helpers (list_topics, get_topic_blocks). It stops short of excluding cases like re-pinning versus unpin_block/update_assignment, so the guidance is clear but not exhaustive.

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