Skip to main content
Glama

agda_refine_or_intro

Refines an Agda goal with a given expression, or introduces a constructor or lambda when none is provided, choosing the best action automatically.

Instructions

Refine or introduce in a goal (auto-chooses the best action).

Combines refine and intro: tries to refine with the expression if given, otherwise introduces a constructor or lambda. Call agda_load afterwards to refresh goals.

Args: file_path: Absolute path to the .agda file goal_id: The goal/hole number (from agda_load output) expr: Expression to refine with (can be empty for intro)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
exprNo
goal_idYes
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the decision process and the need to call agda_load afterwards. However, it does not mention potential failure modes, side effects on the file, or any required state beyond the goal_id.

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 reasonably concise and front-loaded with the core purpose. The Args section is clearly structured and each line adds value. It could be slightly tighter, but no extraneous filler is present.

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?

Given the tool's combined behavior and no annotations, the description adequately covers prerequisites (goal_id from agda_load), the decision logic, and a required post-step. An output schema exists, so return values need not be described. It lacks notes on failure cases, but overall it is complete for typical use.

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?

Schema coverage is 0%, but the description thoroughly explains all three parameters. It provides the exact meaning of file_path, goal_id (from agda_load output), and adds crucial detail that expr can be empty for intro, which is not evident from the schema.

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 'Refine or introduce in a goal' with a specific verb and resource. It also distinguishes from siblings by noting it 'Combines refine and intro', directly referencing the two sibling tools it merges.

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

Usage Guidelines3/5

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

The description explains the auto-selection behavior (refine if expr given, otherwise intro), which implies when the tool would be used, and mentions the follow-up 'Call agda_load afterwards'. However, it does not explicitly state when to choose this over the individual agda_refine or agda_intro tools, or provide exclusion criteria.

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/DreamLinuxer/agda-mcp'

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