Skip to main content
Glama

Commit a freee monthly attendance approval action

freee_monthly_approval_commit_action
Destructive

Approve, return, or cancel a monthly attendance closing application after validating its review mapping and fingerprint; ambiguous or changed data stops the write before submission.

Instructions

Approve, return, or cancel approval of one real 月次勤怠締め application after authorization for the exact action or an active scoped business policy. The Agent may use this single-item tool sequentially without per-item confirmation, but every call recomputes the payment-month/work-month mapping and matches the complete monthly review and fingerprint. Ambiguous or changed mapping stops before any click; never retry an unknown write.

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_monthly_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. Addedv0.4.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare the write/destructive/non-idempotent profile, and the description adds genuine context beyond that: every call recomputes the payment-month/work-month mapping, matches against the full monthly review and fingerprint, aborts before any write when the mapping is ambiguous, and forbids retrying an unknown write. Those are non-obvious runtime behaviors an agent could not infer from the hints. It does not describe what a successful commit returns, which is a modest remaining gap.

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?

Three sentences, front-loaded with the action set and the resource, then preconditions, then failure handling in priority order. Wording is dense with domain terms but no sentence is filler. Slight redundancy between 'matches the complete monthly review and fingerprint' and the schema's fingerprint documentation.

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, non-idempotent, four-required-parameter write with no output schema, the description covers authorization, pre-write verification, abort behavior, and retry policy — the things an agent must know to act safely. The main omission is any signal about the success response or what state the application ends in after each of the three actions.

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% and the schema itself richly documents id, action enum mapping to Japanese UI labels, confirm's const-true semantics, and the SHA-256 fingerprint format. The description adds only the framing that the fingerprint is recomputed and matched against the monthly review on each call, which is marginal over the structured fields. Baseline 3 applies when the schema carries the parameter burden.

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 opens with a specific verb set (approve, return, cancel approval) and a precise resource (one 月次勤怠締め / monthly attendance-closing application), which lets an agent distinguish it from the list, review, and prepare siblings in the same namespace. It stops short of naming the prepare tool it depends on (the fingerprint linkage is only stated in the schema), so the prepare-vs-commit boundary is implied rather than asserted.

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?

It states the authorization precondition (an exact action instruction or an active scoped business policy), clarifies that sequential single-item calls need no per-item confirmation, and gives a stop condition for ambiguous or changed mapping. The exclusion for cancel_approval is also spelled out in the schema. What is missing is an explicit 'call the matching prepare tool first to obtain the fingerprint' instruction in the description itself.

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