Skip to main content
Glama

Accept a credential issued to this account (writes to the ledger)

accept_credential

Signs and accepts a credential issued to this account, making it valid for the subject on the XRP Ledger. This submits the CredentialAccept transaction and spends XRP.

Instructions

Accept a credential that was issued to this account, making it valid for the subject. THIS WRITES TO THE LEDGER and spends XRP.

A credential created with issue_credential is not valid for the subject until the subject signs it. This tool is the subject's side of that: it submits the CredentialAccept.

The signing seed comes from the OS keychain, which the server reads itself, so the agent never sees the seed. This tool is only available if the server was started with --allow-writes.

An optional seed argument exists for throwaway testnet use. It is refused unless the server was started with --allow-inline-seed.

To read a credential's state without changing anything, use get_credential. To withdraw a credential, use revoke_credential.

Input Schema

NameRequiredDescriptionDefault
seedNo
issuerYes
networkNo
credential_typeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does: it flags the write to the ledger and the XRP spend, discloses that signing material comes from the OS keychain and is never exposed to the agent, and documents both gating flags (--allow-writes for the tool, --allow-inline-seed for the seed argument). This is exactly the behavioral context annotations would otherwise supply.

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?

Front-loaded with the destructive consequence in capitals before any mechanics, then the lifecycle rationale, then the seed/flag caveats, then the sibling routing. Every sentence carries distinct information; nothing repeats the schema or the title.

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?

An output schema exists, so return values needn't be described, and the safety/availability picture is thorough for a mutation tool with no annotations. The remaining gap is the undocumented issuer/credential_type/network semantics, which matter for correctness on a ledger write.

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%, so the description must compensate and it only partly does: it explains the optional `seed` argument's purpose and the condition under which it is refused, which is high-value. But `issuer`, `credential_type` and `network` get no explanation at all — an agent must infer whether credential_type is free-form, a hex value, or an enum, and what network's empty default means.

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+resource (accept a credential issued to this account) and immediately explains the lifecycle position: a credential from issue_credential is not valid until the subject signs, and this submits the CredentialAccept. That distinguishes it from issue_credential, get_credential and revoke_credential without opening any schema.

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?

Explicitly names alternatives and the conditions selecting them: get_credential to read state without changes, revoke_credential to withdraw, and issue_credential as the counterpart operation this complements. It also states a hard availability precondition (server must be started with --allow-writes), which is the kind of when-you-can-use-this guidance agents usually have to discover by failing.

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