Skip to main content
Glama

trust_transaction

Record a completed transaction to update trust scores, adding economic evidence and recalculating the agent's score while deduplicating by payment hash.

Instructions

Record a completed transaction for trust scoring. Adds economic evidence and recalculates the agent's score. Deduplicates by payment_hash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesTransaction type
agent_idYesAgent UUID
amount_satsNoAmount in sats (optional)
descriptionNoTransaction description (optional)
counterpartyNoCounterparty name or ID (optional)
payment_hashNoLightning payment hash for dedup (optional)
Behavior4/5

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

With no annotations provided, the description carries the burden of disclosing side effects. It mentions adding economic evidence, recalculating the score, and deduplicating by payment_hash, which implies idempotency. It does not cover permissions, response format, or error handling, but the disclosed behaviors are substantial.

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 three short sentences, each delivering distinct value: purpose, effects, and dedup behavior. No fluff or repetition, making it highly efficient and well-structured.

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 gives a clear overview of purpose and side effects, and the schema covers all parameters. However, with no output schema, it does not describe the return value or error behavior for duplicate payment_hash submissions, leaving minor gaps in completeness.

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%, so the schema already documents all parameters. The description does not add significant parameter-level meaning beyond what the schema provides; the dedup reference is already present in the schema for payment_hash. Baseline 3 is appropriate.

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 a specific verb ('Record') and resource ('completed transaction'), with a clear scope ('for trust scoring') and additional actions ('adds economic evidence', 'recalculates score', 'deduplicates by payment_hash'). It distinguishes itself from sibling tools like trust_lookup or trust_evidence by focusing on transaction recording.

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?

The description gives clear context for when to use the tool: when a transaction is completed and needs to be recorded for trust scoring. However, it does not explicitly name sibling alternatives or state when not to use it, so it falls short of a 5.

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/Schmoll86/trust-mcp'

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