Skip to main content
Glama

get_marginfi_diagnostics

Read-onlyIdempotent

Identifies banks skipped during MarginFi group fetch, providing the bank address, recovered mint/symbol, skip step, and error reason to resolve missed mints on mainnet.

Instructions

READ-ONLY — diagnostic surface for the hardened MarginFi client load. Returns the list of banks the bundled SDK (v6.4.1, IDL 0.1.7) had to skip while fetching the production group, with each record carrying the bank address, best-effort mint + symbol (recovered from raw bytes even when Borsh decode fails), the step where the skip happened (decode / hydrate / tokenData / priceInfo), and the raw error reason. Call this when prepare_marginfi_* reports that a mint you know is listed on mainnet (e.g. USDC) was missed — it will either name the bank explicitly as skipped with the root cause, or confirm the mint truly isn't in the current group. The snapshot reflects the most recent fetchGroupData pass in this process; an empty cache is warmed on demand. No input args.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. Description adds behavioral details: snapshots most recent fetchGroupData pass, warms cache on demand, describes output fields including recovery from raw bytes. 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is thorough but slightly verbose (e.g., details about SDK version and IDL version). However, it is well-structured with purpose, return details, usage guidance, and cache behavior. Every sentence adds value, so it earns a high score.

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?

Given the tool's complexity (diagnostic for a specific client), empty schema, and no output schema, the description fully explains purpose, usage context, output details, and behavioral traits. It is complete and leaves no ambiguity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters exist; schema coverage is 100%. Description explicitly confirms 'No input args.' The description cannot add more meaning because there are no parameters to describe.

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 it is a diagnostic surface for the hardened MarginFi client load, returning a list of skipped banks with detailed fields. It distinguishes itself from sibling tools like prepare_marginfi_* and get_marginfi_positions by focusing on diagnostics rather than operations or position queries.

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?

Provides explicit when-to-use guidance: call when prepare_marginfi_* reports a mint is missed. Explains tool behavior—either names the skipped bank with cause or confirms mint not in group. No mention of when not to use, but context is clear.

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/szhygulin/recon-crypto-mcp'

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