Skip to main content
Glama

headroom_align

Stabilizes prompts for LLM KV-cache prefix hits by isolating volatile timestamps, UUIDs, and request IDs into a deterministic trailing block.

Instructions

Stabilize a prompt for LLM KV-cache prefix hits by isolating volatile timestamps, UUIDs, and request IDs into a deterministic trailing block.

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": {
      "prompt": "<prompt>"
    },
    "name": "headroom_align"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesRaw system or tool prompt text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden. It discloses the core transformation (moving volatile tokens to a deterministic trailing block) but does not say whether the prompt is mutated in place, what the return value is, or whether the operation is reversible; these gaps matter without an output schema.

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?

A single dense sentence with no filler; the purpose and mechanism are front-loaded. Every phrase contributes to explaining what the tool does.

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 one-parameter text transform with no annotations or output schema, the description gives enough to understand the operation's intent and call it correctly. It is slightly incomplete about the returned value and whether the input is modified in place, but not critically so.

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?

The schema documents the single 'prompt' parameter at 100% coverage, including that it is raw system or tool prompt text. The description adds only that the input is the prompt to stabilize, so the baseline 3 for full schema coverage is appropriate.

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?

States a specific verb ('Stabilize') and resource ('a prompt'), then defines the mechanism: isolating volatile timestamps, UUIDs, and request IDs into a deterministic trailing block. It is clearly different from siblings like headroom_compress, though it does not explicitly name or contrast an alternative.

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?

The phrase 'for LLM KV-cache prefix hits' implies when the tool is useful, but there is no explicit guidance on when to prefer it over headroom_compress or other siblings, and no exclusions are stated. Usage is implied rather than fully specified.

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