Skip to main content
Glama

Ångra förberedd bilaga

revert_prepare_bilaga
DestructiveIdempotent

Ångra en FÖRBEREDD-markering på en bilaga (tar bort PREPARER-steget, status → Ej startad). Är bilagan inaktuell (STALE, underlaget har ändrats efter förberedelse eller attest) återställs den helt, även en inaktuell attest. Nekas om bilagan har en giltig attest; den ångras i appen. Kräver 'reconcile'. Argument: orgnr, bilaga_type, account, year, month.

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": {
      "orgnr": "<orgnr>",
      "bilaga_type": "<bilaga_type>",
      "account": "<account>",
      "year": "<year>",
      "month": "<month>"
    },
    "name": "revert_prepare_bilaga"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYes
monthYes
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
accountYes
bilaga_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / orgnr / description
      Added value: +"Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies."
  2. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the destructive/readOnly/idempotent annotations: describes the exact state transition (PREPARED → Ej startad), the STALE full-reset including stale attest, the refusal condition (valid attest), and a required capability ('reconcile'). This is rich behavioral disclosure of what actually gets destroyed and when the call is denied.

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 stale-handling, refusal, and requirement clauses, each of which earns its place. The trailing 'Argument:' enumeration is slightly redundant with the schema but minor. Dense but efficient.

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?

For a destructive mutation with no output schema and five required params, the description covers the important behavior: state changes, full reset of stale bilagor, refusal conditions, and the reconcile requirement. The only gap is per-parameter meaning, which is a parameter dimension concern.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 20% (only orgnr documented), so the description must carry the load, but it merely lists the argument names (orgnr, bilaga_type, account, year, month) without explaining semantics for bilaga_type values, account, year, or month format. It essentially repeats the schema property names rather than adding meaning.

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 and resource: undoes a PREPARED marking on a bilaga, removing the PREPARER step and setting status to 'Ej startad'. Effectively the inverse of prepare_bilaga, though it doesn't name that sibling explicitly. An agent can tell what it does from the description alone.

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?

Gives clear usage context: use to undo a prepared marking, note that if the bilaga is STALE it is fully reset, and that it is refused when a valid attest exists (to be undone in the app). It also flags the required 'reconcile' capability. It stops short of explicitly naming prepare_bilaga as the forward counterpart.

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.