Skip to main content
Glama

agda_case_split

Performs case split on a variable in an Agda goal to generate new proof clauses. Specify the file, goal id, and variable to refactor the proof.

Instructions

Case split on a variable in a goal. Returns the new clauses.

Args: file_path: Absolute path to the .agda file goal_id: The goal/hole number (from agda_load output) variable: The variable name to split on

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goal_idYes
variableYes
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the return value ('Returns the new clauses') but does not disclose whether the tool modifies the file, any side effects, error conditions, or prerequisites beyond the parameter hints. This is a significant gap for a tool that likely performs an edit to the Agda file.

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?

The description is concise, starting with a clear one-sentence purpose, followed by a structured Args list. Every sentence earns its place, with no redundant information or filler.

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?

The tool has a simple signature and an output schema, so return values don't need elaboration. The description provides sufficient parameter context and the crucial hint that goal_id comes from agda_load. However, for a tool likely to mutate an Agda file, the lack of any note about side effects or prerequisites reduces completeness slightly.

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

Parameters4/5

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

The schema provides only parameter names with no descriptions, but the description adds meaningful context for all three parameters: file_path must be an absolute path, goal_id should come from agda_load output, and variable is the name to split on. This compensates well for the 0% schema coverage, though the variable explanation adds minimal extra value beyond 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 the action: 'Case split on a variable in a goal' and what it returns: 'Returns the new clauses.' This specific verb+resource distinguishes it from sibling tools like agda_intro or agda_refine, which serve different purposes.

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 implies usage: you would use this when you want to case split a variable in a goal. However, it does not explicitly state when to avoid it or mention alternative tools, leaving the usage context somewhat implied rather than fully articulated.

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