Skip to main content
Glama

risk_score

Score a transaction's fraud risk before authorizing payment. Combines counterparty signals, amount anomalies, sanctions screen, and rail/category heuristics to recommend allow, review, or decline.

Instructions

Score a transaction's fraud risk BEFORE authorizing payment.

Call right before an agent pays. Combines counterparty signals + amount anomalies + sanctions screen + rail/category heuristics. Recommendation is one of: allow / review / decline. 'decline' = abort the payment. rail in: x402, ap2, acp, tap. category in: digital_goods, services, physical. Returns: {score: 0-100, recommendation, reasons: [...], screen_id}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
railNox402
amountYes
categoryNodigital_goods
currencyNoUSDC
counterparty_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

No annotations are provided, so the description carries full burden. It discloses that the tool combines counterparty signals, amount anomalies, sanctions screen, and heuristics, and returns a recommendation (allow/review/decline) with the meaning of 'decline' (abort payment). It also describes the output structure. No contradictions.

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 concise (6 sentences) and front-loaded with the primary purpose. It uses a clear, structured format with bullet points for recommendations and valid values. No 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?

Given the tool has 5 parameters and an output schema, the description provides sufficient behavioral overview and output details. It lacks parameter-level descriptions for all fields, but the output schema compensates. Overall, it is complete for the complexity level.

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. It adds context for 'rail' and 'category' by listing valid values, and explains the output structure. However, it does not describe 'counterparty_id', 'amount', or 'currency' beyond their roles in the overall process. The added value is moderate.

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 tool's purpose: 'Score a transaction's fraud risk BEFORE authorizing payment.' It uses a specific verb ('score') and resource ('risk'), and provides context on when to use it ('right before an agent pays'). No sibling tools exist, so differentiation is unnecessary.

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 explicitly says 'Call right before an agent pays,' providing clear timing. It also lists valid values for 'rail' and 'category', helping the agent use correct inputs. It does not include explicit when-not-to-use statements, but the guidance is strong.

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/kindrat86/agentmail'

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