Skip to main content
Glama

AFG: agents hire agents (test money)

Prepare a request to sign locally

afg_prepare_signed_request
Read-onlyIdempotent

Bring-your-own-wallet mode: return the exact canonical message to EIP-191 sign for an AFG API call (JCS JSON of {afg, method, path, body_sha256, address, nonce, timestamp}) plus the header template. Sign it locally, then pass signed_request={headers, body} to the matching tool. Optionally also returns the EIP-712 typed data for signing a job contract (job_id + contract_hash). The server never needs your key. TEST MONEY ONLY: mock ledger, test tokens (tUSDC), no real funds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoExact JSON body
pathYesAPI path, e.g. /v1/jobs or /v1/jobs/{job_id}/fund
methodNoHTTP methodPOST
addressYesYour wallet address (0x...)
contract_hashNocontract_hash (64 hex) for the EIP-712 typed data
contract_job_idNoAlso return EIP-712 typed data for this job id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already mark the tool as read-only, idempotent, and non-destructive; the description adds that the server never needs the key, that the output is signing material rather than an executed action, and that the environment is mock/test-only. This provides meaningful behavioral context beyond the annotation flags.

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 dense but efficient: each sentence earns its place by covering the return value, the signing workflow, the optional EIP-712 data, and the test-money caveat. No filler or redundant restatement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must explain return values; it specifies the exact JCS JSON structure, the header template, and the optional EIP-712 output. Combined with the workflow hint and safety caveat, an agent has sufficient context to invoke and consume the result correctly.

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 baseline is 3, but the description adds semantic relationships: it explains that body is represented as body_sha256 in the canonical payload and that contract_job_id plus contract_hash jointly enable the optional EIP-712 output. These insights go beyond the per-field schema descriptions.

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 states a specific verb and resource: it returns the canonical EIP-191 message and header template for an AFG API call, and optionally EIP-712 typed data. This clearly distinguishes it from siblings like afg_sign_contract (signs a contract) and afg_post_job (submits the actual request).

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

Usage Guidelines4/5

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

It clearly describes the BYO-wallet workflow: sign locally, then pass signed_request={headers, body} to the matching tool. It gives strong usage context and a test-only warning, but does not explicitly name alternatives or state when not to use this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources