Skip to main content
Glama

Change a saved segment

firmafakta_update
Destructive

Rename a saved segment, replace its expression or change its per (workplace or company), in place, keeping the rest of it. Give its id from firmafakta_load and at least one of name, segment and per. Refused, without charge, for an id the account has not saved.

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": {
      "id": "<id>"
    },
    "name": "firmafakta_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesthe saved segment's id, from firmafakta_load
perNowhat it counts from now on: workplace or company; omitted keeps it
nameNoits new name; omitted keeps the name
segmentNoits new expression in describe's segment language; omitted keeps the expression

Output Schema

NameRequiredDescriptionDefault
idNo
nameNo
usageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed28 schema fields changed
    • addedOutput schema / properties / id / title
      Added value: +"id"
    • removedOutput schema / properties / id / type
      Removed value: -"string"
    • addedOutput schema / properties / name / title
      Added value: +"name"
    • removedOutput schema / properties / name / type
      Removed value: -"string"
    • removedOutput schema / properties / usage / properties / credits_charged / maximum
      Removed value: -2147483647
    • removedOutput schema / properties / usage / properties / credits_charged / minimum
      Removed value: --2147483648
    • addedOutput schema / properties / usage / properties / credits_charged / title
      Added value: +"credits_charged"
    • removedOutput schema / properties / usage / properties / credits_charged / type
      Removed value: -"integer"
    • removedOutput schema / properties / usage / properties / credits_left / maximum
      Removed value: -2147483647
    • removedOutput schema / properties / usage / properties / credits_left / minimum
      Removed value: --2147483648
    • addedOutput schema / properties / usage / properties / credits_left / title
      Added value: +"credits_left"
    • removedOutput schema / properties / usage / properties / credits_left / type
      Removed value: -[
      -  "null",
      -  "integer"
      -]
    • removedOutput schema / properties / usage / properties / offer
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / usage / properties / plan / title
      Added value: +"plan"
    • removedOutput schema / properties / usage / properties / plan / type
      Removed value: -"string"
    • addedOutput schema / properties / usage / properties / refills_on / title
      Added value: +"refills_on"
    • removedOutput schema / properties / usage / properties / refills_on / type
      Removed value: -"string"
    • addedOutput schema / properties / usage / properties / throttled / properties / plan / title
      Added value: +"plan"
    • removedOutput schema / properties / usage / properties / throttled / properties / plan / type
      Removed value: -"string"
    • addedOutput schema / properties / usage / properties / throttled / properties / waited_ms / title
      Added value: +"waited_ms"
    • removedOutput schema / properties / usage / properties / throttled / properties / waited_ms / type
      Removed value: -"integer"
    • removedOutput schema / properties / usage / properties / throttled / required
      Removed value: -[
      -  "waited_ms",
      -  "plan"
      -]
    • addedOutput schema / properties / usage / properties / throttled / title
      Added value: +"throttled"
    • removedOutput schema / properties / usage / properties / throttled / type
      Removed value: -[
      -  "null",
      -  "object"
      -]
    • removedOutput schema / properties / usage / required
      Removed value: -[
      -  "plan",
      -  "credits_charged"
      -]
    • addedOutput schema / properties / usage / title
      Added value: +"usage"
    • removedOutput schema / properties / usage / type
      Removed value: -"object"
    • removedOutput schema / required
      Removed value: -[
      -  "id",
      -  "name",
      -  "usage"
      -]
  2. Changed1 schema field changed
    • addedInput schema / properties / per
      Added value: +{
      +  "description": "what it counts from now on: workplace or company; omitted keeps it",
      +  "enum": [
      +    "workplace",
      +    "company"
      +  ],
      +  "type": "string"
      +}
  3. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the mutation profile is known. The description adds real value beyond that: partial-update semantics ('keeping the rest of it') and the no-charge refusal path for unsaved ids. It does not say whether a replaced expression is recoverable or what validation failures look like, so it is good but not rich.

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?

Two sentences, front-loaded with the operation and followed by the invocation contract. No filler, and the partial-update guarantee is placed where it matters most.

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 destructive partial-update tool with full schema coverage, annotations and an output schema, the description covers purpose, prerequisites and the refusal case. It leaves open what happens on an invalid expression and whether the updated segment is echoed back, though the output schema likely covers the latter.

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 a constraint the schema does not encode: at least one of name, segment and per must be present even though only id is required. That is meaningful guidance an agent would otherwise miss.

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 set (rename, replace, change) against a specific resource (a saved segment) and adds the key qualifier 'in place, keeping the rest of it', which separates it from firmafakta_save (create) and firmafakta_delete. An agent can identify the operation without opening the schema.

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 concrete preconditions: the id must come from firmafakta_load and at least one of name/segment/per must be supplied, plus the failure condition (an id the account has not saved is refused). It does not explicitly name a sibling for the create-new case, so it stops short of full when/when-not routing.

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.