Skip to main content
Glama

Set credit limit

core_set_credit_limit

Change how much unpaid exposure we will carry for a customer. This is the human decision the credit gate's refusal points to. When o2c refuses to confirm an order, the answer is never to route around the gate — it is for someone with the authority to change this number to change it, here, with a reason that will be read back. A limit of 0 means prepay only. Lowering a limit never touches already-confirmed orders; it tightens the gate for the next one. Effects: customer.credit_limit changed for future confirmations.

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy — approved by whom, on what basis. This is the audit answer to "who raised it".
customer_idYesThe customer. An existing customer id.
credit_limitYesThe new limit. In cents (integer minor units) — 1250 means $12.50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond annotations, it discloses the effect on future confirmations, that lowering a limit does not affect already-confirmed orders, and that a limit of 0 means prepay only. It also establishes the audit expectation around the reason field. This is strong behavioral context for a non-read-only, non-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?

The core purpose is front-loaded, followed by the decision context and the most important edge cases. The narrative style is purposeful here and does not waste sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter mutation with full schema coverage and annotations covering safety flags, the description supplies the missing operational context: when to use it, what changes, what does not change, and the meaning of special values.

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?

Schema coverage is 100%, so the baseline is 3. The description adds meaningful semantics not present in the schema: a limit of 0 means prepay only, and lowering a limit tightens the gate for future orders without touching confirmed ones.

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 action and resource: changing the unpaid exposure/credit limit carried for a customer. It also explains the operational context, making clear this is the human override to the credit gate rather than a general customer update.

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 explicitly says when to use it: when o2c refuses to confirm an order, someone with authority should change the number here rather than route around the gate. It also gives the key exclusion, and the reason requirement is framed as part of the correct usage.

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.