Skip to main content
Glama

Run any model by ID

create_task

Run any PopNow model by its exact API model ID with the model's own input fields, like POST /api/v1/jobs/createTask. Call it without max_usd to get the USD quote (nothing is charged), then again with max_usd after the user approves. Media tasks wait up to about 40 seconds, then return a result or job_id for get_task. Chat replies return in this call and are not retained for later retrieval. Embedding vectors are returned in structuredContent.embeddings.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "model": "<model>",
      "input": "<input>"
    },
    "name": "create_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesThe model's input fields, exactly as in its schema (list_models with model shows them). Media fields take public https links or popnow:// links from earlier results.
modelYesExact PopNow API model ID, for example google/nano-banana-2.1/text-to-image. list_models shows the IDs and each model's inputs.
max_usdNoApproved maximum in USD as a decimal string with up to 9 fractional digits, copied from the quoted cost_usd. Set it only after the user approves; leave it out to get a quote. Nothing is charged without it.
currencyNoOptional. Always USD for this endpoint.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false), the description discloses the billing contract (nothing is charged without max_usd), the two-phase quote/approve flow, the ~40-second media latency with result-or-job_id outcome, that chat replies are not retained for later retrieval, and where embeddings land in structuredContent. These are exactly the behaviors an agent cannot infer from structured fields.

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?

Four tightly packed sentences, front-loaded with the core action before the workflow and return behaviors. A little content (e.g. media link formats) duplicates the schema's input description, but nothing is wasted or buried.

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?

For a generic dispatcher with nested free-form input and no output schema, the description covers everything needed to call it correctly: quoting, approval gating, expected latency, how to retrieve deferred results via get_task, and where each response type surfaces (inline chat, job_id, structuredContent.embeddings). Nothing material is missing.

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 the baseline is 3, but the description adds procedural meaning to max_usd by tying it to the quote-then-approve workflow ('call it without max_usd to get the USD quote... then again with max_usd after the user approves'). It also signals that input is a passthrough of each model's own fields, which is meaningful for a nested free-form object.

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 opens with a precise verb+resource: 'Run any PopNow model by its exact API model ID with the model's own input fields,' and anchors it to the underlying endpoint POST /api/v1/jobs/createTask. This clearly separates the generic runner from the task-specific siblings such as create_image or create_video, so an agent can pick the right tool without opening the schema.

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 gives an explicit procedural rule: call first without max_usd to obtain a quote, then call again with max_usd only after the user approves. It also states that media tasks block for roughly 40 seconds and then hand off to get_task. It stops short of naming when to prefer the specialized siblings over this generic runner, so it is strong context rather than full when/when-not guidance.

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.