Skip to main content
Glama

AssetLab

Update asset cost

update_asset_cost
DestructiveIdempotent

Update an existing asset cost entry by ID - the record type shown on the AssetLab "Expenses" page. Requires asset_costs:write scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesAsset cost ID
amountNoCost amount
site_idNoSite ID
asset_idNoAsset ID
categoryNoCost category
cost_dateNoCost date (ISO 8601)
po_numberNoPurchase order number (free text)
building_idNoBuilding ID
descriptionNoDescription
work_order_idNoWork order ID
invoice_numberNoInvoice number (free text)
purchase_order_idNoPurchase order that paid this cost - resolve via list_purchase_orders. Counts against the order's remaining balance unless the cost belongs to a work order; null clears it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is covered by structured data. The description adds the write-scope requirement, which the annotations do not. It does not clarify partial-vs-full replacement semantics, whether omitted fields are preserved or cleared, or what happens when the ID does not exist — meaningful gaps for 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.

Conciseness5/5

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

Two tight clauses: the action is front-loaded, the UI anchor follows, and the auth requirement is appended last. No filler sentences and nothing that repeats the title verbatim.

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 single-record mutation with annotations covering the safety profile, no output schema, and fully documented parameters, the description covers purpose, identifier and auth. It stops short of describing update merge semantics and error behavior on an unknown ID, which would matter for a tool with only one required parameter.

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% across all 12 parameters, so the schema carries full parameter meaning, including the non-obvious purchase_order_id balance interaction. The description adds nothing beyond the schema about which fields are updatable or how enums/date formats are interpreted. Baseline 3 is appropriate.

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 (Update) and resource (an existing asset cost entry) with the lookup key (by ID), and anchors the resource to the AssetLab 'Expenses' page so the agent can map it to a UI concept. It does not explicitly distinguish itself from update_infrastructure_asset_cost or update_expense, which are the nearest siblings in a very large toolset, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives one concrete prerequisite ('Requires asset_costs:write scope'), which is useful authorization context. However it never says when to use this tool versus update_expense or update_infrastructure_asset_cost, nor when an agent should prefer delete_asset_cost plus create_asset_cost instead. Usage is implied by the name only.

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