Skip to main content
Glama

huddo_app_submit

Apply JSON Patch operations to a room app's shared state atomically. Pass expect revision to prevent overwrites; on revision conflict, re-read and retry.

Instructions

Change a room app's shared state with JSON Patch ops (op: add | remove | replace | test; path: a JSON Pointer like /tasks/T3/status), applied all or nothing. Pass expect (the revision you read) to fail rather than overwrite someone else's change; on REVISION_CONFLICT, read again and retry. Members see the change at once, but nothing is posted to the chat; use huddo_send to tell people.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
asNoIdentity slug to act as (default: the active identity)
appYesApp id from huddo_app_list
opsYesJSON Patch operations, e.g. [{"op":"replace","path":"/tasks/T3/status","value":"DONE"}]
roomNospaceId or index from huddo_list, for this call only (default: the default room)
expectNoRevision the change is based on (from huddo_app_state)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.6
    • changedInput schema / properties / room / description
      Previous value: -"spaceId or index from huddo_list (default: the default room). Applies to this call only; the default room does not change"New value: +"spaceId or index from huddo_list, for this call only (default: the default room)"
  2. Addedv0.9.5

TDQS

A4.7/5.0
Behavior4/5

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

No annotations, so the description carries the full burden and largely meets it: it discloses all-or-nothing atomicity, optimistic-concurrency conflict behavior with a named error (REVISION_CONFLICT), and the visibility side effect (members see it at once, nothing posted to chat). It stops short of noting permission/auth requirements beyond the schema's 'as' parameter.

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?

Every sentence earns its place — mechanism, concurrency contract, recovery step, and visibility caveat — and the core purpose is front-loaded. No padding or restatement of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description must cover behavior itself, and it does: atomicity, conflict failure mode, retry guidance, and side-effect visibility. An agent has everything needed to invoke it correctly.

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 baseline is 3, but the description adds real meaning: it enumerates the op values (add/remove/replace/test), explains path as a JSON Pointer with a concrete example, and clarifies that expect is 'the revision you read' from huddo_app_state.

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?

States a specific verb and resource — change a room app's shared state — and pins down the mechanism (JSON Patch ops with op/path semantics). It is clearly distinguishable from huddo_app_state (read) and huddo_send (chat post).

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

Usage Guidelines5/5

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

Explicit guidance on when to pass expect, what to do on REVISION_CONFLICT (read again and retry), and which sibling to use to notify people (huddo_send). Conditions for correct invocation are spelled out rather than implied.

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