Skip to main content
Glama

Ask before acting

request_action
DestructiveIdempotent

Ask BEFORE you act in your human's systems (op ask), withdraw a waiting request (op withdraw) or read your requests (op list). allowed: act with your own credentials; pending: do not act; an admin decides, ask again with the same idempotency_key; denied: do not act, tell your human why. record_action records the outcome. op proposal: a rule change (rule_from_finding, rule_update, rule_retire, watch_from_rule) a whole-map admin approves. Details: maplith://docs/signals-and-rules.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "request_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
opNoask is the default; proposal takes proposal, reason and idempotency_key.
limitNoop list: 1 to 50, default 20.
titleNoop ask: the request's name, business thing first, no ids.
paramsNoop ask: its params, e.g. { "amount_dkk": 299 }.
reasonNoop ask: a plain lead, then What it does:, Problem:, Value: on their own lines, ≤500 characters. op withdraw: one sentence, ≤200.
statusNoop list: pending (default, still waiting) or all.
systemNoop ask: the system in the catalogue, e.g. "payments".
targetNoWhat you act on: its kind and id.
proposalNoop proposal: the change a whole-map admin approves.
operationNoThe catalogue operation, e.g. "issue_refund".
signal_idNoop ask: the signal that started this, if any.
request_idNoop withdraw: the request_id op ask returned or op list shows.
idempotency_keyNoop ask: your id for it (letters, digits, . _ : -); a repeat returns the first answer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / proposal / properties / chain
      Added value: +{
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / op / description
      Previous value: -"ask (default): one operation in your human's systems. withdraw: a waiting request. proposal: a rule change (proposal, reason, idempotency_key). list: your requests."New value: +"ask is the default; proposal takes proposal, reason and idempotency_key."
  3. Changed14 schema fields changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"op ask: your key for this request (letters, digits, . _ : -); reusing it returns the first answer; for another request it is denied."New value: +"op ask: your id for it (letters, digits, . _ : -); a repeat returns the first answer."
    • changedInput schema / properties / limit / description
      Previous value: -"op list: at most this many, 1 to 50. Default 20."New value: +"op list: 1 to 50, default 20."
    • changedInput schema / properties / op / description
      Previous value: -"ask: request an external operation. withdraw: take back a waiting request. proposal: a rule change for a person (proposal, reason, idempotency_key). list: your requests."New value: +"ask (default): one operation in your human's systems. withdraw: a waiting request. proposal: a rule change (proposal, reason, idempotency_key). list: your requests."
    • changedInput schema / properties / operation / description
      Previous value: -"The operation, as named in the catalogue, e.g. \"issue_refund\"."New value: +"The catalogue operation, e.g. \"issue_refund\"."
    • changedInput schema / properties / params / description
      Previous value: -"The operation's params, e.g. { \"amount_dkk\": 299 }."New value: +"op ask: its params, e.g. { \"amount_dkk\": 299 }."
    • changedInput schema / properties / proposal / properties / definition / description
      Previous value: -"{per:{object,key},all:[C],any:[C]}; C={term:{fn:SUM|COUNT|AVG|MIN|MAX|LAST,object,field?,at?,window?:{field,days:1..90}},op:=|!=|<|<=|>|>=,value:number} or other:term. Numbers only, map names only. Grammar: maplith://docs/signals-and-rules."New value: +"{per:{object,key},all:[C],any:[C]}; C={term:{fn:SUM|COUNT|AVG|MIN|MAX|LAST,object,field?,at?,window?:{field,days:1..90}},op:=|!=|<|<=|>|>=,value:number} or other:term. Map names and numbers only. Grammar: maplith://docs/signals-and-rules."
    • changedInput schema / properties / proposal / properties / urgency / description
      Previous value: -"How urgent a signal the rule raises: info, attention or urgent."New value: +"The signal it raises: info, attention or urgent."
    • changedInput schema / properties / reason / description
      Previous value: -"op ask: plain lead, then What it does:, Problem:, Value:, each on its own line; Details: for references; ≤500 characters. op withdraw: one sentence, ≤200."New value: +"op ask: a plain lead, then What it does:, Problem:, Value: on their own lines, ≤500 characters. op withdraw: one sentence, ≤200."
    • changedInput schema / properties / request_id / description
      Previous value: -"op withdraw: the request_id request_action returned, or op list lists."New value: +"op withdraw: the request_id op ask returned or op list shows."
    • changedInput schema / properties / status / description
      Previous value: -"op list: 'pending' (the default), only those still waiting for a person; 'all', decided ones too."New value: +"op list: pending (default, still waiting) or all."
    • changedInput schema / properties / system / description
      Previous value: -"op ask: the system, as named in the catalogue, e.g. \"payments\"."New value: +"op ask: the system in the catalogue, e.g. \"payments\"."
    • changedInput schema / properties / target / description
      Previous value: -"What you act on: its kind as the catalogue names it, and its id in your human's system."New value: +"What you act on: its kind and id."
    • changedInput schema / properties / target / properties / kind / description
      Previous value: -"The kind of thing acted on, as the catalogue names it, e.g. \"order\"."New value: +"Its kind in the catalogue, e.g. \"order\"."
    • changedInput schema / properties / title / description
      Previous value: -"op ask: a short name for the request, at most 80 characters: the business thing first, no ids."New value: +"op ask: the request's name, business thing first, no ids."
  4. Changed1 schema field changed
    • addedInput schema / properties / title
      Added value: +{
      +  "description": "op ask: a short name for the request, at most 80 characters: the business thing first, no ids.",
      +  "maxLength": 80,
      +  "type": "string"
      +}
  5. Changed5 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "op list: at most this many, 1 to 50. Default 20.",
      +  "type": "number"
      +}
    • changedInput schema / properties / op / description
      Previous value: -"ask: request an external operation. withdraw: take back a waiting request. proposal: a rule change for a person; needs proposal, reason and idempotency_key."New value: +"ask: request an external operation. withdraw: take back a waiting request. proposal: a rule change for a person (proposal, reason, idempotency_key). list: your requests."
    • changedInput schema / properties / op / enum
      Previous value: -[
      -  "ask",
      -  "withdraw",
      -  "proposal"
      -]New value: +[
      +  "ask",
      +  "withdraw",
      +  "proposal",
      +  "list"
      +]
    • changedInput schema / properties / request_id / description
      Previous value: -"op withdraw: the request_id request_action returned, or list_requests lists."New value: +"op withdraw: the request_id request_action returned, or op list lists."
    • addedInput schema / properties / status
      Added value: +{
      +  "description": "op list: 'pending' (the default), only those still waiting for a person; 'all', decided ones too.",
      +  "enum": [
      +    "pending",
      +    "all"
      +  ],
      +  "type": "string"
      +}
  6. Changed3 schema fields changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"op ask: your own key for this request (letters, digits, . _ : -). Asking again with the same key for the same request returns the first answer; the same key for a different request is denied."New value: +"op ask: your key for this request (letters, digits, . _ : -); reusing it returns the first answer; for another request it is denied."
    • changedInput schema / properties / proposal / properties / definition / description
      Previous value: -"Rules grammar: {per:{object,key},all:[conditions],any:[conditions]}. A condition: {term:{fn:SUM|COUNT|AVG|MIN|MAX|LAST,object,field?,at?,window?:{field,days:1..90}},op:=|!=|<|<=|>|>=,value:number} or other:term. Values are numbers: no text match (status = paid) and no date age; a window counts only rows dated in its last days. E.g. per product, under 5 in stock: {per:{object:\"product\",key:\"sku\"},all:[{term:{fn:\"SUM\",object:\"stock_item\",field:\"quantity\"},op:\"<\",value:5}]}. Map names only; no suggested action."New value: +"{per:{object,key},all:[C],any:[C]}; C={term:{fn:SUM|COUNT|AVG|MIN|MAX|LAST,object,field?,at?,window?:{field,days:1..90}},op:=|!=|<|<=|>|>=,value:number} or other:term. Numbers only, map names only. Grammar: maplith://docs/signals-and-rules."
    • changedInput schema / properties / reason / description
      Previous value: -"op ask: plain lead, then What it does:, Problem:, Value:, each label starting its own line (no invented savings). Technical references in Details:. Total ≤500 characters. See maplith://docs/mcp. op withdraw: why it no longer needs a person, in one sentence, at most 200 characters."New value: +"op ask: plain lead, then What it does:, Problem:, Value:, each on its own line; Details: for references; ≤500 characters. op withdraw: one sentence, ≤200."
  7. Changed7 schema fields changed
    • changedInput schema / properties / op / description
      Previous value: -"ask: request an external operation. withdraw: take back a waiting request. proposal: suggest a rule or live check for a person; needs proposal, reason and idempotency_key."New value: +"ask: request an external operation. withdraw: take back a waiting request. proposal: a rule change for a person; needs proposal, reason and idempotency_key."
    • changedInput schema / properties / proposal / description
      Previous value: -"op proposal: the rule or live check you suggest, for a whole-map admin to approve."New value: +"op proposal: the change a whole-map admin approves."
    • removedInput schema / properties / proposal / properties / kind / description
      Removed value: -"rule_from_finding: a new rule, saved switched off. watch_from_rule: a live check of an enabled rule."
    • changedInput schema / properties / proposal / properties / kind / enum
      Previous value: -[
      -  "rule_from_finding",
      -  "watch_from_rule"
      -]New value: +[
      +  "rule_from_finding",
      +  "rule_update",
      +  "rule_retire",
      +  "watch_from_rule"
      +]
    • addedInput schema / properties / proposal / properties / reason
      Added value: +{
      +  "description": "rule_retire: why, one sentence of ≤160 characters.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • changedInput schema / properties / proposal / properties / rule_id / description
      Previous value: -"An enabled rule id for a live check."New value: +"The rule to fix, retire or check live."
    • addedInput schema / properties / proposal / properties / rule_version
      Added value: +{
      +  "description": "As read.",
      +  "type": "integer"
      +}
  8. Changed2 schema fields changed
    • changedInput schema / properties / proposal / properties / definition / description
      Previous value: -"Rules grammar: {per:{object,key},all:[conditions],any:[conditions]}. A condition: {term:{fn:SUM|COUNT|AVG|MIN|MAX|LAST,object,field?,at?,window?:{field,days:1..90}},op:=|!=|<|<=|>|>=,value:number} or other:term. Map names only; no suggested action."New value: +"Rules grammar: {per:{object,key},all:[conditions],any:[conditions]}. A condition: {term:{fn:SUM|COUNT|AVG|MIN|MAX|LAST,object,field?,at?,window?:{field,days:1..90}},op:=|!=|<|<=|>|>=,value:number} or other:term. Values are numbers: no text match (status = paid) and no date age; a window counts only rows dated in its last days. E.g. per product, under 5 in stock: {per:{object:\"product\",key:\"sku\"},all:[{term:{fn:\"SUM\",object:\"stock_item\",field:\"quantity\"},op:\"<\",value:5}]}. Map names only; no suggested action."
    • changedInput schema / properties / reason / description
      Previous value: -"op ask: plain lead, then What it does:, Problem:, Value: (no invented savings). Technical references in Details:. Total ≤500 characters. See maplith://docs/mcp. op withdraw: why it no longer needs a person, in one sentence, at most 200 characters."New value: +"op ask: plain lead, then What it does:, Problem:, Value:, each label starting its own line (no invented savings). Technical references in Details:. Total ≤500 characters. See maplith://docs/mcp. op withdraw: why it no longer needs a person, in one sentence, at most 200 characters."
  9. Changed4 schema fields changed
    • addedInput schema / properties / proposal / description
      Added value: +"op proposal: the rule or live check you suggest, for a whole-map admin to approve."
    • addedInput schema / properties / proposal / properties / kind / description
      Added value: +"rule_from_finding: a new rule, saved switched off. watch_from_rule: a live check of an enabled rule."
    • addedInput schema / properties / proposal / properties / name / description
      Added value: +"A short name a person recognises."
    • addedInput schema / properties / proposal / properties / urgency / description
      Added value: +"How urgent a signal the rule raises: info, attention or urgent."
  10. Changed2 schema fields changed
    • changedInput schema / properties / op / description
      Previous value: -"ask: request an external operation. withdraw: take back a waiting request. proposal: suggest a rule or watch for a person; needs proposal, reason and idempotency_key."New value: +"ask: request an external operation. withdraw: take back a waiting request. proposal: suggest a rule or live check for a person; needs proposal, reason and idempotency_key."
    • changedInput schema / properties / proposal / properties / rule_id / description
      Previous value: -"An enabled rule id for a watch."New value: +"An enabled rule id for a live check."
  11. Changed3 schema fields changed
    • changedInput schema / properties / op / description
      Previous value: -"ask (the default): ask whether you may do one operation; needs system, operation, target, params, reason and idempotency_key. withdraw: take back one of your requests that still waits; needs request_id and reason."New value: +"ask: request an external operation. withdraw: take back a waiting request. proposal: suggest a rule or watch for a person; needs proposal, reason and idempotency_key."
    • changedInput schema / properties / op / enum
      Previous value: -[
      -  "ask",
      -  "withdraw"
      -]New value: +[
      +  "ask",
      +  "withdraw",
      +  "proposal"
      +]
    • addedInput schema / properties / proposal
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "definition": {
      +      "description": "Rules grammar: {per:{object,key},all:[conditions],any:[conditions]}. A condition: {term:{fn:SUM|COUNT|AVG|MIN|MAX|LAST,object,field?,at?,window?:{field,days:1..90}},op:=|!=|<|<=|>|>=,value:number} or other:term. Map names only; no suggested action.",
      +      "type": "object"
      +    },
      +    "finding_id": {
      +      "description": "Optional visible finding for a rule.",
      +      "type": "string"
      +    },
      +    "kind": {
      +      "enum": [
      +        "rule_from_finding",
      +        "watch_from_rule"
      +      ],
      +      "type": "string"
      +    },
      +    "mode": {
      +      "description": "A: assistant checks on schedule; B: your system sends changes.",
      +      "enum": [
      +        "A",
      +        "B"
      +      ],
      +      "type": "string"
      +    },
      +    "name": {
      +      "maxLength": 120,
      +      "type": "string"
      +    },
      +    "rule_id": {
      +      "description": "An enabled rule id for a watch.",
      +      "type": "string"
      +    },
      +    "urgency": {
      +      "enum": [
      +        "info",
      +        "attention",
      +        "urgent"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "kind"
      +  ],
      +  "type": "object"
      +}
  12. Changed7 schema fields changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Your own key for this request (letters, digits, . _ : -). Asking again with the same key for the same request returns the first answer; the same key for a different request is denied."New value: +"op ask: your own key for this request (letters, digits, . _ : -). Asking again with the same key for the same request returns the first answer; the same key for a different request is denied."
    • addedInput schema / properties / op
      Added value: +{
      +  "description": "ask (the default): ask whether you may do one operation; needs system, operation, target, params, reason and idempotency_key. withdraw: take back one of your requests that still waits; needs request_id and reason.",
      +  "enum": [
      +    "ask",
      +    "withdraw"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / reason / description
      Previous value: -"Plain lead, then What it does:, Problem:, Value: (no invented savings). Technical references in Details:. Total ≤500 characters. See maplith://docs/mcp."New value: +"op ask: plain lead, then What it does:, Problem:, Value: (no invented savings). Technical references in Details:. Total ≤500 characters. See maplith://docs/mcp. op withdraw: why it no longer needs a person, in one sentence, at most 200 characters."
    • addedInput schema / properties / request_id
      Added value: +{
      +  "description": "op withdraw: the request_id request_action returned, or list_requests lists.",
      +  "type": "string"
      +}
    • changedInput schema / properties / signal_id / description
      Previous value: -"The signal that started this, if any."New value: +"op ask: the signal that started this, if any."
    • changedInput schema / properties / system / description
      Previous value: -"The system, as named in the catalogue, e.g. \"payments\"."New value: +"op ask: the system, as named in the catalogue, e.g. \"payments\"."
    • changedInput schema / required
      Previous value: -[
      -  "system",
      -  "operation",
      -  "target",
      -  "params",
      -  "reason",
      -  "idempotency_key"
      -]New value: +[]
  13. Changed1 schema field changed
    • addedInput schema / properties / target / description
      Added value: +"What you act on: its kind as the catalogue names it, and its id in your human's system."
  14. Changed1 schema field changed
    • changedInput schema / properties / reason / description
      Previous value: -"Why, in one or two sentences. Max 500 characters."New value: +"Plain lead, then What it does:, Problem:, Value: (no invented savings). Technical references in Details:. Total ≤500 characters. See maplith://docs/mcp."
  15. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, but the description adds real context beyond them: the three possible verdicts and the required agent behavior for each, and the fact that repeating with the same idempotency_key returns the first answer. It does not spell out what side effects occur on 'allowed' or what permissions are needed, so it falls short of fully explaining a destructive tool.

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?

The core rule is front-loaded in the first clause, then each op is dispatched in a compact list, and the decision tree is stated in a single dense line with no filler. For 13 parameters and four modes, the size is proportionate and every sentence carries an instruction.

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?

With no output schema, the description usefully implies the return contract through the allowed/pending/denied verdicts and the request_id used for withdraw. The pointer to maplith://docs/signals-and-rules covers the complex proposal/definition grammar that the schema only sketches. What's absent is any statement of permissions or what 'allowed' actually performs, which matters for a destructive tool.

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 description coverage is 100%, so the schema already documents every parameter, including the op enum and its default. The description adds only a light op-to-parameter mapping ('proposal takes proposal, reason and idempotency_key'), which largely restates the schema. Baseline 3 is appropriate when the schema carries the semantic load.

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 first sentence gives a distinct verb+resource for each of the four modes: ask (ask before acting in the human's systems), withdraw (withdraw a waiting request), list (read your requests), and proposal (a rule change an admin approves). An agent can tell what the tool does without opening the schema. It does not differentiate this tool from sibling names like 'ask' or 'list_requests', which appear to overlap with the ask and list ops.

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?

'Ask BEFORE you act' plus the allowed/pending/denied decision tree gives explicit when-to-use and what-to-do-next guidance, including 'pending: do not act' and 'denied: tell your human why'. It also points to record_action for recording the outcome, so the follow-up tool is clear. What's missing is any when-NOT-to-use or alternative-selection guidance relative to siblings.

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.

Resources