Skip to main content
Glama

Write the closing

set_trip_ending
Idempotent

Write the closing passage that ends a trip's page — what the journey left behind. It is not a second summary: the summary opens the page and tells a stranger what kind of trip this was, while the closing is read after they have been through all of it, so it can say the thing that only makes sense once you have seen the whole thing. Write it once the timeline is actually finished. If nothing comes to mind, leave it out - a forced ending reads worse than none.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoTwo or three sentences, printed at the very end of the page. Read by people, so write it in the traveller's language, not English. Ground it in what actually happened on this trip, not in travel-writing sentiment. (must not be empty)
clearNoRemove the closing instead of writing one.
trip_idYes(must not be empty)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already indicate readOnlyHint=false, destructiveHint=false, and idempotentHint=true, so the safety profile is covered. The description adds valuable behavioral context: it should be written in the traveller's language, grounded in actual trip events, and a forced ending is worse than none. This goes beyond annotations and helps the agent produce appropriate 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?

The description is concise and front-loaded with the core purpose. Each sentence adds value: the primary action, the contrast with summary, the timing requirement, and the quality guidance. No wasted words, and it flows logically.

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?

Given the three parameters are fully documented in the schema and the description explains the tool's role and usage conditions, it is largely complete. It doesn't explicitly mention the clear parameter for removing a closing, but the schema covers that. The description gives enough conceptual context for an agent to decide when and how to invoke it.

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 description coverage is 100%, so all parameters (text, clear, trip_id) are well-documented. The description does not add any parameter-specific semantics beyond the schema, but it does hint at the 'clear' concept via 'leave it out' (though it doesn't explicitly link to the parameter). Baseline of 3 is appropriate given full schema coverage.

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 clearly states the tool writes the closing passage for a trip's page, using a specific verb ('write') and resource ('closing passage'). It explicitly differentiates this from a summary, noting the summary opens the page while the closing comes after the whole journey is seen, which distinguishes it from sibling tools like set_trip_head or set_trip_theme.

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 provides clear context on when to use it: write it once the timeline is finished, and skip it if nothing comes to mind to avoid a forced ending. It also explains the distinction from the summary, which guides when not to use it for that purpose. However, it doesn't name other sibling tools like set_trip_head or set_trip_theme, but the summary contrast is a strong enough alternative.

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