Skip to main content
Glama
loldwyer

Red MCP Server

by loldwyer

brc_update_prepayment

Update an existing parent prepayment after reviewing a draft. Requires prior retrieval of prepayment details and explicit user confirmation.

Instructions

Updates an existing parent Prepayment by id. Use brc_get_prepayment first to retrieve the current prepayment and timestamp. Child prepayments are not exposed by the public API. Do not call with confirmWrite=true until the user has reviewed the draft and explicitly confirmed the update.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesParent prepayment id.
totalYesPrepayment total amount.
acCodeYesNominal account code, for example 4000.
procDateYesProcessing date, for example 2024-03-15T00:00:00.
entryDateYesEntry date, for example 2024-03-01T00:00:00.
referenceYesPrepayment reference, for example PRE0001.
timestampYesBase64 timestamp returned by the prepayment, for example bgUcQIbL3gg=.
companyNameYesCompany context name, for example YOUR-COMPANY-NAME.
firstDetailNoFirst detail text.
confirmWriteNoMust be true only after the user explicitly confirms updating this prepayment.
secondDetailNoSecond detail text.
Behavior4/5

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

With no annotations provided, the description effectively conveys behavioral traits such as the required two-step workflow (get first, then update with timestamp) and the confirmWrite parameter acting as a confirmation safeguard. However, it could be more explicit about the permanence of the update or lack of rollback, but the current disclosure is adequate.

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?

The description is only three sentences, each serving a distinct purpose: stating the action, providing the prerequisite, and giving a critical warning. It is front-loaded with the primary purpose and contains no redundant or extraneous information.

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?

The description covers the essential workflow (get before update) and the confirmation step, which is critical for safe usage. While it does not describe the output or return value, the absence of an output schema reduces that expectation. For a tool with 11 parameters and no output schema, the description is sufficiently complete to guide correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 100% description coverage for all 11 parameters, so the description does not need to repeat parameter details. It adds value by explaining the purpose of the 'timestamp' parameter (from brc_get_prepayment) and the 'confirmWrite' parameter (user confirmation required), which enhances understanding beyond the schema alone.

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 clearly states the verb 'Updates', the resource 'existing parent Prepayment', and the method 'by id'. It distinguishes itself from sibling tools like brc_create_prepayment and brc_get_prepayment by specifying it's an update operation and clarifying that child prepayments are not exposed.

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?

The description explicitly instructs users to first call brc_get_prepayment to retrieve the current prepayment and timestamp before using this tool. It also warns against setting confirmWrite=true until the user has reviewed and explicitly confirmed the update, providing clear guidance on when and how to use the tool appropriately.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/loldwyer/Red'

If you have feedback or need assistance with the MCP directory API, please join our Discord server