Skip to main content
Glama

Correct a notebook line

correct_notebook
Destructive

Replaces one line of the crew notebook with corrected text; the old line stays in its history.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspace": "<workspace>",
      "handle": "<handle>",
      "text": "<text>"
    },
    "name": "correct_notebook"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
handleYesA note's handle, e.g. m:3f9a1c2e.
as_agentNo
workspaceYesWorkspace slug from workspaces.list, e.g. "acme".

Output Schema

NameRequiredDescriptionDefault
afterYes
beforeYes
handleYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / as_agent
      Added value: +{
      +  "type": "string"
      +}
  2. Added

TDQS

B3.4/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and idempotentHint=false, so the description isn't carrying the safety profile alone. It does add genuinely useful context beyond them: the prior line is retained in history, which tells the agent the replacement is recoverable in a way destructiveHint alone would not convey. It stops short of describing authorization requirements or whether the handle itself changes.

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?

A single sentence that front-loads the mutation and then the history caveat, with no filler. It is efficient, though for a four-parameter mutation tool with half its schema undocumented it is arguably too compressed to carry the load.

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?

An output schema exists, so return values need no explanation, and annotations cover the safety profile. What remains missing for a mutating tool is the as_agent semantics and the note that the handle must be an existing m: token — gaps an agent would need filled to invoke confidently.

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 50%, so the description must compensate, and it largely does not. It gestures at the text parameter via "corrected text" but says nothing about its length bound, and the as_agent parameter — a meaningful impersonation control — is undocumented in both the schema and the description.

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 names a specific verb ("replaces") and a specific resource ("one line of the crew notebook") and adds the corrective intent ("with corrected text"). It implies an edit-in-place operation, which separates it from write_notebook, but it never names or contrasts that sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: "corrected text" suggests fixing an existing line rather than appending a new one, which is the natural boundary against write_notebook. There is no explicit when-to-use/when-not-to-use statement, no precondition that the handle must already exist, and no mention of alternatives.

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