Skip to main content
Glama

contextual_risk

Position-aware contextual risk assessment. Returns the full risk assessment plus position context: estimated slippage, effective cost, max safe position, portfolio concentration, and MEV exposure. Equivalent to POST /v1/risk/contextual.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesBlockchain to query: "solana", "base", "ethereum", "arbitrum", "bsc", or "hyperevm"
addressYesToken mint address (Solana) or contract address (Base/EVM, 0x-prefixed)
position_size_usdYesPlanned position size in USD
portfolio_size_usdYesTotal agent portfolio value in USD

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries full burden for behavioral disclosure. It states the tool is equivalent to a POST endpoint but does not clarify if it is read-only or has side effects. No info on auth, rate limits, or other behavioral traits is given.

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 two sentences, front-loads the purpose, and includes a list of outputs and the API endpoint. 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?

The description covers the tool's inputs (implicitly via schema) and explicitly lists key outputs like slippage and MEV exposure. However, since there is no output schema, the description could be more precise about the return format, but it still provides a solid overview.

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 coverage is 100%, and the schema already describes all parameters clearly. The description adds context about the output but does not elaborate on how parameters influence the result beyond what the schema provides. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool returns a risk assessment with position context, specifying outputs like slippage and cost. However, it does not explicitly differentiate from sibling tools 'analyze_token' and 'quick_check', leaving some ambiguity about when to use this tool over them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description does not mention prerequisites, context, or exclusions, leaving the agent without decision support for tool selection.

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.

TDQS

B3.3/5.0
Disambiguation4/5

The two tools are mostly distinct: analyze_token provides a basic risk assessment, while contextual_risk adds position-aware context. Since contextual_risk is a superset, there is slight overlap, but the descriptions clearly differentiate the use cases.

Naming Consistency2/5

Tool names do not follow a consistent pattern. 'analyze_token' uses a verb_noun structure, while 'contextual_risk' uses an adjective_noun structure. This inconsistency could confuse agents expecting a uniform naming convention.

Tool Count3/5

With only 2 tools, the server feels minimal, but for a narrowly scoped risk-assessment domain, this count is borderline acceptable. It is slightly below the typical 3-15 range but not unreasonably sparse.

Completeness4/5

The tool surface covers the core risk assessment functionality with both basic and contextual variants. Minor gaps exist (e.g., batch analysis or specialized chain-specific queries), but the primary workflows are supported without dead ends.

Resources