Skip to main content
Glama

write_hitl

Create or overwrite a file with mandatory human approval: first request permission, then confirm using the returned session token to complete the write.

Instructions

Crea o sobreescribe un archivo completo. REQUIERE aprobación humana.

Flujo correcto (dos llamadas):

  1. Llama con approved: false → recibirás instrucciones y un sessionToken

  2. Usa question() para mostrar el archivo al usuario y pedir aprobación

  3. Llama de nuevo con approved: true + el sessionToken recibido

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesContenido completo del archivo
approvedYestrue solo si el usuario aprobó via question()
filePathYesRuta del archivo a crear (relativa al PROJECT_ROOT o absoluta)
sessionTokenNoToken recibido en el bloqueo previo o de declare_intent_hitl
Behavior4/5

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

There are no annotations, so the description carries the behavioral burden. It clearly discloses the human-approval requirement, the two-phase call pattern, and that the second call needs the sessionToken. It does not explicitly state that no write occurs on the first call, but the approved:false step strongly implies a pre-approval staging behavior.

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 compact and front-loaded with the primary action and the approval requirement. The numbered flow is easy to follow, though calling it 'dos llamadas' while listing three steps (including question()) introduces a minor structural inconsistency.

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 human-in-the-loop write tool with no output schema, the description covers the essential invocation flow, approval gate, and token handling. It does not describe the return value of the approved:true call or what happens if the user rejects, but the main steps an agent needs to complete a successful write are present.

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 description coverage is 100%, so the baseline is 3. The description adds meaningful workflow semantics beyond the schema by explaining the exact order of approved values and the role of sessionToken across the two calls. This helps an agent understand how the parameters interact in the full flow.

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 action and resource: 'Crea o sobreescribe un archivo completo' (create or overwrite a complete file). The word 'completo' helps distinguish it from the sibling edit_hitl, which likely handles partial edits, making the tool's purpose clear and differentiated.

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 a clear, structured correct flow: first call with approved:false to receive instructions and a sessionToken, then use question() for approval, then call again with approved:true. It does not explicitly mention alternatives like edit_hitl or bash_hitl, but the context for when to use this tool is clearly implied by the full-file write behavior and the approval workflow.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Santi746/IA-HITL-PROTOCOL'

If you have feedback or need assistance with the MCP directory API, please join our Discord server