Skip to main content
Glama

Run a portal action

run_portal_action
Destructive

Runs a portal action as the person, exactly as if they did it in Timeclock.Kiwi. Reading runs straight away. Everyday changes are saved straight away. Risky changes (deleting, permissions, pay rates, settings, publishing, notifying staff, anything billed) are not made yet: you get a confirm_url for the person to open and confirm, then call check_confirmation.

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": {
      "action_id": "<action_id>"
    },
    "name": "run_portal_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe action's body, as describe_portal_action shows it
queryNoThe action's query parameters
summaryNoFor changes: one or two plain sentences saying what this will do, naming the people, dates and things involved. The person sees it when confirming.
action_idYesAn action_id from search_portal_actions
path_paramsNoValues for the action's path_params

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only flag destructiveHint=true and idempotentHint=false; the description goes well beyond them by explaining the two-tier execution model, enumerating which change categories are deferred, and stating that a confirm_url is returned for the person to open. It also discloses the acting-as-the-person identity semantics and immediate-write behavior for reads and routine edits.

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-loads the identity/execution semantics before the safety tiers, and each clause about risky categories earns its place by defining the deferral boundary. It is slightly run-on with a long parenthetical list, but there is no filler.

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?

Covers the input side and the confirmation branch well, but with no output schema the description never says what a read or immediately-applied action returns. The confirm_url is mentioned as a return value, but the success payload for non-deferred actions is left unexplained.

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 baseline is 3; the schema already documents action_id, body, query, path_params and summary in comparable detail. The description adds no syntax or format guidance beyond what the schema states, so it does not exceed the baseline.

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 (runs) and resource (portal action) plus a scope qualifier: 'as the person, exactly as if they did it in Timeclock.Kiwi'. The action_id source ('from search_portal_actions') ties it to the right sibling, though 'portal action' remains an abstract, generic resource rather than a concrete entity type.

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 a clear decision rule: reads and everyday changes execute immediately, while risky categories (deleting, permissions, pay rates, settings, publishing, notifying staff, anything billed) require the confirm_url flow and a follow-up call to check_confirmation. That explicitly routes the agent to a sibling after a deferral, though it does not say when to prefer this over the describe/search 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