Skip to main content
Glama

yax_check_policy

Read-onlyIdempotent

Determine whether an action would be approved by your policy without running it. Returns approved/denied, remaining spend cap, and human approval requirement.

Instructions

Checks if an action would be approved by your policy without running it. Returns approved/denied, remaining spend cap, and whether human approval is required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
action_typeYesThe action category to check against policy, e.g. 'payment', 'email', 'on_chain'.
parametersNoAction parameters to evaluate, including amount and recipient if applicable.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
decisionNoPolicy decision: approved, denied, or requires_approval.
policy_versionNoVersion of the policy that was evaluated, e.g. policy_v12.
shade_guardNoShadeGuard check result: pass or fail.
cap_remaining_usdNoRemaining spend cap in USD for this agent in the current period.
requires_approvalNoWhether this action would require human approval before executing.
Behavior5/5

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

Annotations already declare readOnlyHint, destructiveHint, idempotentHint. The description adds details on return values and emphasizes no execution, enhancing transparency without contradicting annotations.

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?

Single concise sentence covering purpose, behavior, and key outputs with no redundancy or extraneous information.

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?

For a simple check tool with 2 parameters and an output schema, the description fully covers what the agent needs: purpose, dry-run nature, and return values. No missing essential context.

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%, so the description adds little beyond schema. It mentions 'amount and recipient' but that's already in the schema description. Baseline 3 is appropriate.

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 checks if an action would be approved by policy without executing it, and lists return values (approved/denied, spend cap, human approval needed). This distinguishes it from sibling tools like yax_run_secure_workflow or yax_submit_approval.

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 implies use for dry-run policy checks before execution, but does not explicitly state when not to use or mention alternatives. Still provides clear context.

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/Fabio662/yieldagentx402-sdks'

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