Skip to main content
Glama

get_marginfi_diagnostics

Read-onlyIdempotent

Identifies banks skipped during MarginFi group loading, providing reasons for failures to help diagnose missing mints.

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?

Starts with 'READ-ONLY', aligns with annotations (readOnlyHint=true). Adds rich behavioral context: cache warming, snapshot freshness, skip steps, error reason. 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?

Description is somewhat long but well-structured, front-loading with key info. Every sentence adds value; could be slightly shorter but remains efficient.

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 no parameters, no output schema, and rich annotations, description covers purpose, behavior, return fields, use case, and caching. Complete for a diagnostic tool.

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; description explicitly says 'No input args', which is helpful confirmation. Schema coverage is 100%, so description adds value by clarifying there are no required inputs.

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?

Description clearly states it's a read-only diagnostic tool for MarginFi, returning skipped banks with details. It distinguishes from siblings by specifying it should be called when prepare_marginfi_* reports a missed mint, and it names the data fields explicitly.

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?

Description gives a clear trigger for use (when a mint is missed) and explains the cache behavior. No explicit when-not-to-use or alternatives, but the context is sufficiently clear for an agent to decide.

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/vaultpilot-mcp'

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