Skip to main content
Glama

Spara instruktion

add_instruction

Sparar en ny instruktion: en regel som användaren vill att AI:n följer när den bokför, t.ex. 'Representation bokas på 6072'. Använd när användaren ber dig komma ihåg något för framtiden; ändra en befintlig med update_instruction i stället för att spara en dubblett. Med orgnr gäller den bara det bolaget, annars alla bolag i kontot (det kräver att användaren är kontots administratör). Syns för användaren i Kvickd under Inställningar, Instruktioner. Returnerar id, text och vilka bolag den gäller. Kräver behörigheten manage_documents i bolaget.

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": {
      "text": "<text>"
    },
    "name": "add_instruction"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesInstruktionen i klartext, högst 2000 tecken, t.ex. 'Konto 6540 används för IT-tjänster.'
orgnrNoValfritt: bolagets organisationsnummer, t.ex. 559900-1004, när instruktionen bara gäller det bolaget. Utelämna för en instruktion som gäller alla bolag i kontot.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / orgnr
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Valfritt: bolagets organisationsnummer, t.ex. 559900-1004, när instruktionen bara gäller det bolaget. Utelämna för en instruktion som gäller alla bolag i kontot.",
      +  "title": "Orgnr"
      +}
    • addedInput schema / properties / text / description
      Added value: +"Instruktionen i klartext, högst 2000 tecken, t.ex. 'Konto 6540 används för IT-tjänster.'"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare the write/non-destructive/non-idempotent profile, and the description adds what they cannot: the manage_documents permission requirement, the admin requirement for account-wide instructions, the visibility of the instruction in the Kvickd UI, and the orgnr scoping consequence. This is exactly the kind of context annotations do not carry.

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 purpose and example, then usage, scoping, side effects, return value and permissions in order. Slightly dense as a single paragraph, but nearly every clause carries distinct information an agent needs.

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?

Despite no output schema, the description states what is returned (id, text, applicable companies), plus permissions, admin constraint and UI visibility. Nothing needed to invoke it correctly is missing.

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 both parameters are already documented, but the description adds the behavioral consequence of omitting orgnr (applies to all companies in the account) and the administrator prerequisite for that case. That goes beyond the schema text, though the schema already covers the basic semantics.

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 (sparar/creates) plus the resource (en instruktion) and immediately defines what an instruction is with a concrete example ('Representation bokas på 6072'). It is clearly distinguishable from related siblings like update_instruction and delete_instruction.

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 an explicit trigger ('Använd när användaren ber dig komma ihåg något för framtiden') and names the alternative with the condition that selects it: use update_instruction instead of creating a duplicate. No inference needed.

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.