Skip to main content
Glama

agda_helper_function

Generate a helper function type signature for an Agda goal by providing file path, goal ID, and optional partial application expression.

Instructions

Generate a helper function type signature for a goal.

The expression should be a partial application like "h x y" where h is the helper name and x, y are arguments. Agda will generate the type signature for h. If empty, uses whatever is in the goal.

Args: file_path: Absolute path to the .agda file goal_id: The goal/hole number (from agda_load output) expr: Partial application (e.g. "helper x y")

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 provided, the description carries the full burden of behavioral disclosure. It explains that Agda will generate the type signature and describes the partial application format. However, it does not disclose potential side effects (e.g., whether it modifies the file), prerequisites (e.g., a running Agda process), or any error conditions. This adds some transparency but leaves gaps.

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 and well-structured, with a clear one-sentence purpose, followed by a brief explanation of the expression format, and then a straightforward list of arguments. No unnecessary words or repetition, making it easy to parse.

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 moderate complexity level and an output schema (which likely documents return values). The description covers the main usage pattern and parameter semantics, making it complete enough for most use cases. It could mention edge cases or what happens when the helper already exists, but the output schema and the provided details are sufficient for an agent to invoke the tool correctly.

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?

The input schema has no parameter descriptions (0% coverage), so the description fully compensates by explaining each argument: file_path (absolute path to the .agda file), goal_id (goal/hole number from agda_load output), and expr (partial application like 'helper x y'). It also clarifies the default behavior of expr, which adds significant meaning 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 tool's purpose: 'Generate a helper function type signature for a goal.' It specifies a concrete verb ('Generate') and resource ('helper function type signature'), and explains the partial application expression format. This distinguishes it from sibling tools like agda_goal_type or agda_infer, 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 provides implicit usage guidance by explaining how the 'expr' parameter works and the default behavior when empty ('If empty, uses whatever is in the goal'). However, it does not explicitly state when to use this tool over alternatives or mention any exclusions, leaving the agent to infer the appropriate context from the tool's name and description.

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