Skip to main content
Glama

Philidor DeFi Vault Risk Analytics

check_policy

State whether the positions you supply conform to the limits and constraints you supply. Calls POST /v1/graph/check and returns the API compliance attestation (attestation de conformité): compliance (compliant or non_compliant), violations, policy_hash, findings, and snapshotId. When issue is true and the API issues an attestation, the result also includes attestation_id, signerAddress, and the verification URL GET /v1/graph/attestation/{id}/verify. This states conformity with your policy. It does not recommend a vault. The same inputs produce the same result for every wallet. No Philidor policy is preselected. A missing or unknown API field is an error, never compliant. A caller without an eligible plan gets a structured refusal (required plan, x402 price, upgrade link), never an empty result. Philidor does not prepare transactions.

Input Schema

NameRequiredDescriptionDefault
issueNoWhen true, ask the API to issue a compliance attestation. Does not prepare a transaction.
limitsYesExposure caps as fractions in (0, 1]. Pass {} to set none. Omit a field to leave that dimension unconstrained. No Philidor cap is preselected.
agentIdNoOptional caller reference forwarded to the API. Not a wallet and not a key.
positionsYesPositions to check. 1 to 100. This is not a wallet.
constraintsNoOptional rules you set: minTier (Prime, Core, or Edge), allowlist and blacklist (max 1000 vault keys each; a key on both lists is not conforming because the blacklist wins), requireDepositStatus and requireWithdrawStatus (open only), maxFreshnessSeconds (integer 0 to 31622400). Omit the object to add none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so well: it lists the key return fields, describes attestation issuance only when issue is true, and gives the verification URL pattern. It also discloses deterministic behavior, error handling for missing or unknown API fields, structured refusal for ineligible plans, and that Philidor does not prepare transactions.

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 front-loaded with the core purpose and return shape, and most sentences add useful operational context rather than repetition. It is somewhat dense and could be more scannable, but the length is justified by the absence of annotations and output schema.

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?

There is no output schema and no annotations, so the description must explain both behavior and returns; it does so by naming the attestation fields, optional issued-attestation fields, verification URL, refusal behavior, and error policy. For this tool's complexity, an agent has enough information to invoke it correctly and interpret the result.

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 the positions, limits, constraints, agentId, and issue parameters in detail. The description reinforces that positions and limits are caller-supplied and that no policy is preselected, but it does not add parameter syntax or semantics beyond what the schema already provides.

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 states a specific verb and resource: it checks whether supplied positions conform to supplied limits and constraints, and calls POST /v1/graph/check. It also draws a clear boundary against recommendation tools by saying it does not recommend a vault and does not preselect a Philidor policy.

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 usage context: use it to test positions against caller-provided limits and constraints, with no preselected policy and no wallet-specific behavior. It includes an explicit non-use boundary ('does not recommend a vault') but does not name alternative tools for recommendation or comparison tasks.

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.