Skip to main content
Glama

anon_patch_finance_tx_id

Destructive

Edit a project finance transaction's amount, type, note, payer, or split. Requires finance:manage or finance:add; users with add permission can only edit their own entries.

Instructions

编辑账目。需 finance:manage 或 finance:add 权限。财务管理者可改任意账目;finance:add 记账者仅能改自己添加的账目,改他人账目返回 403。不修改附件。 PATCH /api/projects/{id}/finance/{txId} 项目由当前 API 密钥自动确定,无需传 projectId。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: permission scopes, the 403 outcome for unauthorized edits, the fact that attachments are not touched, and that the project is derived from the API key. These details meaningfully inform a destructive mutation.

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 action and resource, then permissions, then the endpoint, so the most important information comes first. It is slightly dense with multiple clauses but every sentence contributes relevant constraints.

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 mutation tool with no output schema, the description covers auth, failure mode, side-effect scope (attachments untouched) and path resolution. The remaining gap is the semantics of the request body fields, which are undocumented in both the schema and the description.

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 0% (only amount is documented in the schema), so the description carries the burden. It usefully clarifies that no projectId needs to be passed, but it says nothing about the body fields (note, type, amount units, splitAmong, payerUserId) or txId, leaving the compensations partial.

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 and resource (编辑账目 / edit finance entry) and anchors it to the PATCH /finance/{txId} endpoint, which clearly separates it from sibling mutators like anon_post_finance (create), anon_delete_finance_tx_id (delete) and anon_patch_finance_ticket (tickets). An agent can identify the target resource without opening the schema.

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 concrete authorization context: requires finance:manage or finance:add, and spells out that finance:add users may only edit their own entries while editing others returns 403. That is strong when-to-use guidance, though it does not explicitly point to a sibling alternative for cases the caller cannot edit.

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

Deploy Server

Other Tools