Skip to main content
Glama

Correct a set

edit_set
DestructiveIdempotent

Use this when the person corrects a set they already logged. Give its setId from get_today or get_session and only the values they change; null keeps the rest. Comes back with an Undo. Do not use to log a new set; use log_set.

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": {
      "setId": "<setId>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "edit_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
rirNoCorrected reps in reserve, only when they say it; null keeps it.
loadNoThe corrected weight; null keeps it.
repsNoThe corrected reps; null keeps them.
setIdYesThe set's id, from get_today or get_session.
loadUnitNoThe new load's unit, as in log_set. Only with a new load.
idempotencyKeyYesA new random id for this change (a UUID). Send the same one again only to retry this exact change.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / load / description
      Added value: +"The corrected weight; null keeps it."
    • addedInput schema / properties / loadUnit / description
      Added value: +"The new load's unit, as in log_set. Only with a new load."
    • addedInput schema / properties / reps / description
      Added value: +"The corrected reps; null keeps them."
    • addedInput schema / properties / rir / description
      Added value: +"Corrected reps in reserve, only when they say it; null keeps it."
    • addedInput schema / properties / setId / description
      Added value: +"The set's id, from get_today or get_session."
  2. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already flag this as a mutating, destructive-but-idempotent operation, so the safety profile is covered. The description adds useful behavior beyond that: it is a partial update where null preserves untouched fields, and the response carries an Undo. It does not add much more (e.g. confirmation or scope of what is overwritten), so a 3 is fair given the annotation coverage.

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?

Three short sentences: trigger first, then mechanics, then the exclusion with the alternative. Every sentence carries distinct information with no repetition of the title.

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 the description covers sourcing the id and partial-update semantics. It is adequate for a 6-parameter mutation, though it could say more about what mutation scope or failure looks like given destructiveHint=true.

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 field-level meaning is already documented. The description still adds real value by spelling out the sparse-update contract ('only the values they change; null keeps the rest') and by pointing setId at get_today or get_session, which the schema only partially states.

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 ('corrects a set they already logged') and explicitly separates it from the sibling log_set. An agent can distinguish it from every other set-related tool without opening a schema.

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?

Gives a positive trigger (user corrects an already-logged set), tells where to source the setId (get_today or get_session), and names the exclusion plus the alternative ('Do not use to log a new set; use log_set'). Nothing is left 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.