Skip to main content
Glama

Save a segment

firmafakta_save

Save a segment under a name in the account; it shows on firmafakta.se under Sparade urval.

Input Schema

NameRequiredDescriptionDefault
nameYesa name for the segment
segmentYesthe segment expression

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
usageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The description adds useful context beyond annotations: the saved segment becomes user-visible on firmafakta.se under Sparade urval, signalling a persistent, externally observable write. However, with idempotentHint=false it never says what happens if the same name is reused (overwrite vs. duplicate) or whether any permissions are required, which is the key behavioral unknown for this mutation.

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?

A single compact sentence with the action front-loaded and no filler. The trailing clause about Sparade urval is slightly awkwardly attached but still earns its place by describing the user-visible outcome.

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 two-parameter surface is small. Still, for a non-idempotent write the description should state duplicate-name behavior and the segment expression format before an agent can call it confidently.

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

Parameters3/5

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

Schema coverage is 100%, so both parameters are already documented and the baseline applies. The description adds no meaning about name uniqueness or what syntax a 'segment expression' must follow, leaving the highest-risk input underspecified.

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?

The description gives a specific verb and resource ('Save a segment under a name in the account') plus the concrete effect of it appearing on firmafakta.se under Sparade urval. It is clearly distinct from all siblings (count/describe/fetch/find_codes/load/lookup), though it never explicitly contrasts with them.

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

Usage Guidelines3/5

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

The context of persisting a segment for later reuse is implied, but there is no explicit 'use this when' guidance and no mention of firmafakta_load as the complementary retrieval tool. An agent must infer the save-then-load workflow.

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.