Skip to main content
Glama

Lantern Works GPU Prices

optimize_agent_stack

Read-only

Estimate a monthly stack cost from a short description of the agent being built.

description: free text, e.g. 'scrapes 20k JS pages/month via 5 GB residential proxies, 3k search queries, summarizes with an LLM, budget $300/mo'. Parsed deterministically (keywords/regex, no LLM) into components: gpu, scraping, proxy, search, llm_api, email, hosting, database, monitoring. Optional fields override the parse: gpu_hours (GPU-hours/month), gpu_model ('H100', 'A100', 'RTX 4090'), model_size_b (billions of params; sets a minimum VRAM using FP16 x 1.2), scrape_pages, js_rendering, proxy_gb, search_queries, emails_sent, llm_api, monthly_budget_usd. Each component gets the cheapest option with a cited price among tracked providers, with calc, source_url, verified_at, referral_disclosure (set when the link is a referral link) and manual-signup notes. Components with no cited price say 'no sourced price tracked' (nothing is estimated). Totals show the math and say whether they are complete. Pulled listings are excluded. Every option has data_age_hours, degraded (> 48 h) and stale (> 7 days); GPU prices older than 168 h never rank by default (listed in the line's stale_prices); max_data_age_hours replaces that default and drops older options (excluded_too_old counts them). Same data as optimize_stack, compare_gpu_prices and the deal feed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "optimize_agent_stack"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNofull
llm_apiNo
proxy_gbNo
workloadNo
gpu_hoursNo
gpu_modelNo
descriptionNo
emails_sentNo
js_renderingNo
model_size_bNo
scrape_pagesNo
search_queriesNo
max_data_age_hoursNo
monthly_budget_usdNo
exclude_manual_signupNo

Output Schema

NameRequiredDescriptionDefault
okYes
modeNo
errorNo
linesNo
receiptNo
quote_idNo
issued_atNo
quote_basisNo
referral_disclosureNoOne-line referral disclosure, present whenever the result names a provider; each provider-naming item then has tracked_url (tagged /go/ redirect).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare read-only and open-world, so the description carries the real burden and does so thoroughly: parsing is deterministic (keywords/regex, no LLM), each component picks the cheapest option with a cited price, referral_disclosure and manual-signup notes are attached, and unsourced components explicitly return 'no sourced price tracked' with nothing estimated. It also discloses freshness semantics in detail (data_age_hours, degraded > 48h, stale > 7 days, GPU prices older than 168h excluded from ranking unless max_data_age_hours overrides, with excluded_too_old counting drops) plus the exclusion of pulled listings.

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?

Purpose is front-loaded and almost every clause carries real information; there is no filler or marketing language. The drawback is structure: a long comma-spliced block mixes input-parsing rules, parameter definitions and freshness policy without line breaks or grouping, which makes it slower to scan than it needs to be.

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 15-parameter, zero-schema-documentation tool with an output schema already covering return values, the description supplies enough to call it correctly: both input paths, per-field meanings, the no-estimation fallback, freshness cutoffs and override behavior. The only gaps are three secondary parameters (mode, workload, exclude_manual_signup) that an agent could still pass blindly.

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 0% across 15 parameters, so the description must compensate and largely does: it explains the description field with a concrete example, defines gpu_hours, gpu_model ('H100', 'A100', 'RTX 4090'), model_size_b (VRAM floor via FP16 x 1.2), scrape_pages, js_rendering, proxy_gb, search_queries, emails_sent, llm_api, monthly_budget_usd and max_data_age_hours. It leaves mode, workload and exclude_manual_signup entirely undefined, which prevents a top score.

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 opening sentence gives a specific verb and resource ('Estimate a monthly stack cost') plus the input mode ('from a short description of the agent being built'), which is clear. The closing line 'Same data as optimize_stack, compare_gpu_prices and the deal feed' establishes a relationship to siblings but describes shared data provenance rather than how this tool differs in outcome from optimize_stack, so sibling differentiation is only partial.

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?

Usage is implied rather than stated: an agent learns it can pass a free-text description and that 'Optional fields override the parse', which tells it the two input paths can be combined. There is no explicit when-to-use versus optimize_stack or estimate_job_cost, and no statement of when this tool is the wrong choice. The sibling sentence names other tools but gives no selection rule.

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