Skip to main content
Glama

Verify Logic

verify_logic
Read-onlyIdempotent

Verify algorithms and logic in loaded files by submitting verification questions. Code execution sandbox tests correctness and edge cases.

Instructions

Verify algorithms and logic in a cached file using Gemini code execution sandbox. Prerequisite: load_file. Auto-infer language.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
questionYesWhat to verify in the loaded file (e.g. algorithm correctness, edge cases).
languageNoPrimary language (e.g. TypeScript, Python, JavaScript, Go, Rust, Java). Auto-infer from files.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesWhether the tool completed successfully.
resultNoSuccessful result payload.
errorNoError payload when ok is false.
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, which tell the agent it's a safe, read-only operation. The description adds valuable context: it uses a 'Gemini code execution sandbox' (explaining the mechanism) and 'Auto-infer language' (an important behavioral detail). This combination of annotations and description provides good transparency without contradiction.

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 extremely concise: two sentences totaling 15 words. It front-loads the primary action ('Verify algorithms and logic') and efficiently adds the prerequisite and auto-inference. Every word contributes meaningful information without redundancy.

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 existence of an output schema (not shown but indicated), the description does not need to detail return values. The description covers the core purpose, prerequisite, and auto-inference. However, for a tool that uses a code execution sandbox, it might be helpful to mention any security considerations or that the file is executed in a sandbox. But overall, it provides sufficient context for a simple verification tool with good annotation coverage.

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?

Schema coverage is 100%, so both parameters (question, language) are already described in the schema. The description adds meaning beyond schema: it connects 'question' to the loaded file ('What to verify in the loaded file') and explains 'language' auto-inference ('Auto-infer from files'). This helps the agent understand the parameter context better, though it doesn't add syntax or format details.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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: 'Verify algorithms and logic in a cached file using Gemini code execution sandbox'. It mentions a prerequisite (load_file) and auto-inference of language, making the purpose specific and actionable. However, it does not explicitly differentiate from sibling tools like analyze_time_space_complexity or detect_code_smells, which are similar analysis tools, so it misses a small opportunity for distinction.

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 specifies a prerequisite ('Prerequisite: load_file'), which guides the agent to use load_file first. It also mentions 'Auto-infer language' as an optional behavior. However, it does not provide explicit guidance on when to use this tool versus alternatives (e.g., when to use analyze_time_space_complexity instead) or when not to use it. The absence of exclusions or alternative recommendations limits its utility for decision-making.

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/j0hanz/code-lens'

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