Skip to main content
Glama

Change an app's data

write_app_data
Destructive

Call one of an app's tools that changes data, as describe_app lists it: an action, or a built-in tool such as app_revert. Every change is checked against the app's rules before it is kept. Put the tool's arguments, and the ones Cliquet adds such as app_remark, inside arguments.

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": {
      "app": "<app>",
      "tool": "<tool>"
    },
    "name": "write_app_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe app, as list_apps names it, such as sam/budget.
roleNoThe role to act as, one the person holds. Leave it out when they hold one.
toolYesThe tool's name, as describe_app lists it.
argumentsNoThe tool's arguments, as an object, as describe_app describes them.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.9/5.0
Behavior4/5

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

Adds real context beyond annotations: every change is checked against the app's rules before it's kept, and mentions augmented arguments like app_remark. Annotations already state destructiveHint true and non-idempotent, so this adds the validation behavior which annotations can't express.

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?

Two sentences, front-loaded with the key action, then the argument packaging. Slightly dense with the parenthetical 'as describe_app lists it, such as app_revert' but no waste.

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?

For a generic proxy that changes arbitrary app data, the description covers the routing and argument shape but leaves out return behavior, errors, and whether confirmation is needed for destructive ops — notable given destructiveHint=true. Still adequate given annotations.

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 description adds meaning: tool must come from describe_app, arguments carries the tool's args plus Cliquet-added ones such as app_remark; role is left out if the person holds one—that latter is schema-noted. Slightly above baseline.

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?

Clear verb (call a tool that changes data) and resource (an app's tool), with app/role/tool/arguments indirection explained. It distinguishes from read_app_data only implicitly via 'changes data' and 'app_revert' example; explicit sibling contrast would earn 5.

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?

Says to identify the tool via describe_app, implies read_app_data is for reads versus this for changes, and notes that the server validates changes against app rules. No explicit 'use X when' negation or list of when-not.

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