Skip to main content
Glama

submit_and_pay_job

Submit a job to a provider and auto-pay if within set price limit. Returns job event ID on timeout for later result retrieval.

Instructions

Full customer flow: submit job -> auto-pay -> wait for result. Validates that the payment recipient matches the provider card. On timeout after submission, the job event ID is returned so the caller can follow up with get_job_result. Handles both free and paid providers automatically. If max_price_lamports is not set and provider requests payment, the job is rejected with the price - set max_price_lamports to auto-approve payments up to that limit. COST: input is sent inline in the tool call, so a large input pays output tokens on the calling LLM. For files or git diffs, prefer submit_and_pay_job_from_file or submit_diff_review respectively.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYes
provider_npubYes
capabilityNogeneral
kind_offsetNo
timeout_secsNo
max_price_lamportsNo
Behavior5/5

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

With no annotations, the description fully carries behavioral disclosure. It reveals auto-pay, payment recipient validation, timeout return of job event ID, handling free/paid providers, rejection behavior, and cost implications of inline input.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single focused paragraph with purpose front-loaded. Each sentence adds value, though it could be slightly more concise. Good structure for a complex tool.

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 no output schema and 0% schema coverage, the description covers purpose, usage, behavioral details, and cost. Missing some parameter explanations (e.g., kind_offset), but overall fairly complete for the context.

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

Parameters3/5

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

Schema coverage is 0%, so description must add meaning. It explains max_price_lamports well but does not elaborate on input, provider_npub, capability, kind_offset, or timeout_secs. Only partial compensation for low coverage.

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 full flow: submit job, auto-pay, wait for result. It distinguishes from siblings by recommending alternatives for files or git diffs.

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?

Explicitly tells when to use this tool versus submit_and_pay_job_from_file or submit_diff_review. Also explains behavior on timeout, handling free/paid providers, and max_price_lamports usage.

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/elisymlabs/elisym'

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