Skip to main content
Glama

declare_intent

Register an in-flight change. PREFER typed operations: {op:"rename", symbol, new_name} | {op:"add_param", symbol, name, type?, default?} | {op:"remove_param", symbol, name} | {op:"change_return", symbol, type} | {op:"extract", symbol, new_name} | {op:"move", symbol, new_path} | {op:"delete", symbol} | {op:"add", symbol} | {op:"modify", symbol}. Typed intents get conflict prediction against other live intents (intent_conflicts: COMMUTE / CONFLICT / UNKNOWN). ref links an issue or PR. TTL 15 minutes; extend with heartbeat. With the native hook installed, collide-hook apply (JSON op or list on stdin) performs rename / add_param / remove_param / pass_arg on this checkout — definition and every call site — verified with the repo's check, declared as one intent, reported, completed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoAn issue or pull request this work belongs to.
afterNoThe signature or name after it.
pathsYesFiles the change will touch.
beforeNoThe signature or name before the change.
repo_idYesThe repository id, e.g. github.com/org/repo (repo_id in .collide/config.json).
summaryNoOne line on what you are about to do.
symbolsNoSymbols the change will touch.
operationsNoTyped operations, e.g. {op: "rename", symbol, new_name}.
change_typeNoLegacy prose kind of change; prefer operations.
idempotency_keyNoAny string; a retry with the same key declares once.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / after / description
      Added value: +"The signature or name after it."
    • addedInput schema / properties / before / description
      Added value: +"The signature or name before the change."
    • addedInput schema / properties / change_type / description
      Added value: +"Legacy prose kind of change; prefer operations."
    • addedInput schema / properties / idempotency_key / description
      Added value: +"Any string; a retry with the same key declares once."
    • addedInput schema / properties / operations / description
      Added value: +"Typed operations, e.g. {op: \"rename\", symbol, new_name}."
    • addedInput schema / properties / paths / description
      Added value: +"Files the change will touch."
    • addedInput schema / properties / ref / description
      Added value: +"An issue or pull request this work belongs to."
    • addedInput schema / properties / repo_id / description
      Added value: +"The repository id, e.g. github.com/org/repo (repo_id in .collide/config.json)."
    • addedInput schema / properties / summary / description
      Added value: +"One line on what you are about to do."
    • addedInput schema / properties / symbols / description
      Added value: +"Symbols the change will touch."
  2. Changed35 schema fields changed
    • removedInput schema / properties / after / default
      Removed value: -""
    • removedInput schema / properties / after / description
      Removed value: -"Optional: the symbol's intended new signature or state."
    • removedInput schema / properties / after / title
      Removed value: -"After"
    • removedInput schema / properties / before / default
      Removed value: -""
    • removedInput schema / properties / before / description
      Removed value: -"Optional: the symbol's prior signature or state, for context."
    • removedInput schema / properties / before / title
      Removed value: -"Before"
    • removedInput schema / properties / change_type / default
      Removed value: -""
    • removedInput schema / properties / change_type / description
      Removed value: -"Legacy prose change type (rename | signature | move | delete | add | refactor); prefer typed operations."
    • removedInput schema / properties / change_type / title
      Removed value: -"Change Type"
    • removedInput schema / properties / idempotency_key / default
      Removed value: -""
    • removedInput schema / properties / idempotency_key / description
      Removed value: -"Optional client-supplied key so a retried call is not applied twice."
    • removedInput schema / properties / idempotency_key / title
      Removed value: -"Idempotency Key"
    • removedInput schema / properties / operations / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / operations / default
      Removed value: -null
    • removedInput schema / properties / operations / description
      Removed value: -"Typed edit operations — {op, symbol, ...} — enabling provable conflict prediction."
    • addedInput schema / properties / operations / items
      Added value: +{
      +  "type": "object"
      +}
    • removedInput schema / properties / operations / title
      Removed value: -"Operations"
    • addedInput schema / properties / operations / type
      Added value: +"array"
    • removedInput schema / properties / paths / description
      Removed value: -"Repo-relative file paths this change will touch."
    • removedInput schema / properties / paths / title
      Removed value: -"Paths"
    • removedInput schema / properties / ref / default
      Removed value: -""
    • removedInput schema / properties / ref / description
      Removed value: -"Link to an issue or PR (e.g. #123, a URL, or PROJ-42)."
    • removedInput schema / properties / ref / title
      Removed value: -"Ref"
    • removedInput schema / properties / repo_id / description
      Removed value: -"Repository id — the git remote (e.g. github.com/acme/api) or a bare folder name; a #branch suffix scopes to that branch."
    • removedInput schema / properties / repo_id / title
      Removed value: -"Repo Id"
    • removedInput schema / properties / summary / default
      Removed value: -""
    • removedInput schema / properties / summary / description
      Removed value: -"A short human-readable summary of the change."
    • removedInput schema / properties / summary / title
      Removed value: -"Summary"
    • removedInput schema / properties / symbols / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / symbols / default
      Removed value: -null
    • removedInput schema / properties / symbols / description
      Removed value: -"Symbol names referenced by, or being changed in, this edit."
    • addedInput schema / properties / symbols / items
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / symbols / title
      Removed value: -"Symbols"
    • addedInput schema / properties / symbols / type
      Added value: +"array"
    • removedInput schema / title
      Removed value: -"declare_intentArguments"
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false), so the bar is lower and the description adds real context: a 15-minute TTL with heartbeat extension, conflict outcomes (COMMUTE/CONFLICT/UNKNOWN), and hook-triggered side effects on definition and call sites. What it omits is what registering actually does to other agents' intents (blocking, visibility) and what success returns.

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?

Front-loaded with the core action, then the operation grammar, then the hook behavior — a sensible order with minimal filler. The hook sentence is long and clause-stacked, but each clause carries distinct information (which ops, scope, verification, reporting), so little is wasted.

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 10-parameter mutation tool with no output schema and no annotations beyond the safety hints, the description covers TTL, conflict semantics, retry idempotency, and the optional hook workflow. It stops short of stating the return payload or what the caller should do after a CONFLICT/UNKNOWN result, which is the remaining actionable gap.

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%, so the baseline is 3, but the description adds meaning the schema does not: it enumerates all eight typed operations with their field shapes (rename/symbol/new_name, add_param/name/type/default, extract, move, delete, add, modify), whereas the schema only shows one example. It also explains ref (issue/PR link), TTL, and idempotency-driven retry behavior in prose.

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?

Opens with a specific verb+resource: 'Register an in-flight change', then clarifies the mechanism (typed operations, conflict prediction, TTL). An agent can tell this is about declaring intent, not querying it. It never names or contrasts with siblings like claim, defer_intent, or pending_reconciliations, so it misses the top-tier sibling-differentiation bar.

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?

'PREFER typed operations' and the TTL/heartbeat note imply usage, and the hook paragraph states a concrete condition ('With the native hook installed'). However, there is no explicit when-to-use-vs-alternatives guidance (e.g., when to use claim or defer_intent instead), leaving routing between the 15 sibling tools to inference.

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