Skip to main content
Glama

Add to timeline

add_block

Add one block to a trip's timeline. This is the only way to write to a timeline; a DAY_MARKER block separates days. Layouts and their payload shapes: learn('block_types').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesSee learn('block_types/<TYPE>').
badgeNoA short label for what kind of moment this is — a meal, a museum, checking in. Shown to readers, so name the occasion, not the data.
payloadYesContent for this layout; shape depends on type. title / subtitle / text / caption / facts / badge are printed on the page and read by people who were not there, so write them in the traveller's language, not English. No field names or debugging traces, and no coordinates — the share page withholds those on purpose. The worked examples in learn('block_types') are written in English only to show the shape of each payload; your text goes in the traveller's language. See learn('voice').
trip_idYes(must not be empty)
sort_keyNoManual ordering override; defaults to occurred_at_utc.
client_idYesYour own key for this block, so a retry does not create a duplicate. (must not be empty)
tz_offsetNoMinutes east of UTC; defaults to the trip's own offset.
occurred_at_utcYesWhen this happened, epoch milliseconds UTC. Orders the timeline.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations are all false (not read-only, not idempotent, not destructive), and the description does not contradict them. It adds useful behavioral context: the DAY_MARKER rule for separating days and the fact that this is the sole write mechanism. It doesn't disclose retry semantics, but those are implied by idempotentHint=false and the client_id param in the schema. This is a reasonable amount of added context beyond the annotations.

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 sentences, zero filler. The purpose is front-loaded, the key domain rule (DAY_MARKER) is included, and the reference to learn is concise. Every clause earns its place.

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 tool with 8 params, a nested payload object, and an enum, the description is concise but sufficient because it defers to learn('block_types') for the complex payload details. It doesn't describe return values, but there's no output schema, so that's not required. It covers the core action and provides a clear path to the necessary knowledge.

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

Parameters4/5

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

Schema coverage is 100% with each parameter described, so the schema carries the heavy lifting. The description adds value by pointing to learn('block_types') for payload shapes, which directly addresses the most complex parameter (payload). It also implicitly reinforces the client_id deduplication purpose by mentioning 'only way to write,' though it doesn't restate the schema details.

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 description states a specific verb ('Add'), resource ('block'), and scope ('to a trip's timeline'). It also declares 'This is the only way to write to a timeline,' which distinguishes it from read-only siblings like get_timeline and update_block. This makes the tool's purpose unmistakable.

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?

The description explicitly establishes when to use this tool: 'This is the only way to write to a timeline.' It also directs the agent to learn('block_types') for layout specifics, which is a clear pointer for payload construction. It doesn't mention alternatives for updating existing blocks, but given that it's the only write path, the usage context is clear.

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