Skip to main content
Glama

prepare_inputs

Prepares circuit inputs for zero-knowledge proof generation by computing signal hashes, signing attestations, querying EAS data, and building Merkle proofs for identity verification circuits.

Instructions

Step 1 of the step-by-step flow: Prepare all circuit inputs. Computes signal hash, signs it with the attestation wallet, queries EAS for attestation data, builds Merkle proof, and returns all inputs needed for proof generation. Call this BEFORE request_challenge. For oidc_domain circuit, provide jwt and scope instead of Coinbase-specific parameters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
circuitYesWhich circuit to use
scopeNoScope string for nullifier derivation. Defaults to "proofport" if omitted. For oidc_domain circuit, this is the domain scope string.
country_listNoISO 3166-1 alpha-2 country codes. Required for coinbase_country circuit.
is_includedNotrue = prove country IS in list, false = prove NOT in list. Required for coinbase_country circuit.
jwtNoOIDC JWT token (id_token) for oidc_domain circuit
providerNoOIDC provider. "google" (default) for Google Workspace, "microsoft" for Microsoft 365.
Behavior3/5

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

With no annotations provided, the description carries full burden. It describes the multi-step computational process (hash, sign, query, build proof) which gives good behavioral context, but doesn't mention error conditions, performance characteristics, authentication requirements, or what happens if attestation data isn't found. For a complex 6-parameter tool with no annotations, this leaves significant behavioral 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 perfectly structured: first sentence states the overall purpose and multi-step process, second sentence provides critical sequencing guidance, third sentence gives circuit-specific parameter guidance. Every sentence earns its place with zero wasted words, and the most important information (purpose and sequencing) is front-loaded.

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?

For a complex tool with 6 parameters, 100% schema coverage, no annotations, and no output schema, the description does well but has gaps. It covers purpose, sequencing, and parameter relationships effectively, but doesn't describe the return value format or error behavior. Given the computational complexity implied, more information about outputs would be helpful for completeness.

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 description coverage is 100%, so the baseline is 3. The description adds meaningful semantic context: it explains that for oidc_domain circuit, 'provide jwt and scope instead of Coinbase-specific parameters', which clarifies the mutual exclusivity between parameter groups. This goes beyond the schema's individual parameter descriptions by explaining relationships between parameters.

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 with specific verbs ('prepare', 'computes', 'signs', 'queries', 'builds', 'returns') and resources ('circuit inputs', 'signal hash', 'attestation wallet', 'EAS', 'Merkle proof'). It distinguishes from sibling tools by explicitly stating this is 'Step 1' and should be called 'BEFORE request_challenge', making the scope and sequence unambiguous.

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

Usage Guidelines5/5

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

The description provides explicit usage guidance: 'Call this BEFORE request_challenge' establishes sequencing, and 'For oidc_domain circuit, provide jwt and scope instead of Coinbase-specific parameters' gives circuit-specific parameter alternatives. This tells the agent exactly when to use this tool and how parameters differ across circuit types.

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/zkproofport/proofport-ai'

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