Skip to main content
Glama

Commit a freee application action

freee_approval_commit_action
Destructive

Commits one freee application approval, return, or approval cancellation after validating its preview fingerprint and authorization against an exact instruction or active scoped policy.

Instructions

Change one real application after matching its preview and authorization for the exact action or an active scoped business policy. A policy may map user-defined conditions to approve or return, cover later-discovered matches within its stated scope, and use this single-item tool sequentially without per-item confirmation; the Agent evaluates full detail and matches the fingerprint on the user's behalf. Skip isolated nonmatches or ambiguous items and continue independent work. A known pre-click preview error may be prepared again under the same policy, but an unknown write must never be retried. A 休暇 approval repeats the complete pending 勤務時間修正 dependency check, then reopens the exact target and revalidates its detail, action, and fingerprint before any click.

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>",
      "action": "<action>",
      "fingerprint": "<fingerprint>",
      "confirm": "<confirm>"
    },
    "name": "freee_approval_commit_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe numeric No. shown in the freee application list.
actionYesapprove maps to 承認; return maps to 申請者へ差し戻す; cancel_approval maps to 承認を取り消す on an approved application and must verify 差戻し. Canceling approval requires a precise instruction for this application; an approve/return policy does not authorize it.
confirmYesMust be true only when this exact write matches a precise user instruction or a still-active scoped business policy. The Agent validates the preview and fingerprint on the user's behalf; no separate per-item confirmation is required.
fingerprintYesThe unchanged SHA-256 fingerprint returned by the matching prepare tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.0
    • changedInput schema / properties / action / description
      Previous value: -"approve maps to 承認; return maps to 申請者へ差し戻す."New value: +"approve maps to 承認; return maps to 申請者へ差し戻す; cancel_approval maps to 承認を取り消す on an approved application and must verify 差戻し. Canceling approval requires a precise instruction for this application; an approve/return policy does not authorize it."
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "approve",
      -  "return"
      -]New value: +[
      +  "approve",
      +  "return",
      +  "cancel_approval"
      +]
  2. Changed1 schema field changedv0.4.7
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be true only after explicit current-message user approval."New value: +"Must be true only when this exact write matches a precise user instruction or a still-active scoped business policy. The Agent validates the preview and fingerprint on the user's behalf; no separate per-item confirmation is required."
  3. First observedv0.3.0

TDQS

A4.4/5.0
Behavior5/5

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

The annotations already declare a destructive, non-idempotent, open-world write. The description adds substantial context beyond that: single-item sequential use, no per-item confirmation under a policy, retry prohibitions, and the special dependency recheck for a 休暇 approval.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The main purpose is front-loaded and every sentence carries safety-relevant information, but the dense semicolon-linked prose and domain-specific Japanese terms make it harder to parse than necessary.

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 single-item commit with no output schema, the description covers the critical behavioral conditions: authorization scope, preview matching, retry safety, and dependency revalidation. It is nearly complete, though it does not describe success or failure outcomes explicitly.

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 parameter meanings are already documented. The description reinforces the authorization and fingerprint matching context, but it does not add parameter-level syntax or format detail beyond the schema.

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?

The description states a specific verb and resource: change one real application after matching its preview and authorization. It clearly separates this commit tool from preparation siblings by requiring a matching preview and fingerprint.

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?

It gives explicit when-to-use rules: only after matching the preview and authorization, or under an active scoped policy. It also says when not to use it (skip nonmatches or ambiguous items) and how to handle a known preview error versus an unknown write.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.