Last Price
v0.10.0Compute and verify prices from an agent, metered per call. Works keyless on a demo tenant.
Endpoint health
online- Last checked
- 11/20/2026, 10:17:51 AM
- Latency
- 142 ms
- Consecutive failures
- 0
- Endpoint reachable: pass
- Protocol valid: pass
- MCP handshake valid: pass
Machine-readable profile
mcp-server · schema v1 · callable
mcp-server:ai.last-price%2Fpricing
Connect this server
Generated config contains no credentials. Keep any required secrets in your client's local environment.
Authentication is required by at least one indexed endpoint or package. No token or secret is included in this configuration.
{
"mcpServers": {
"ai.last-price/pricing": {
"url": "https://api.last-price.ai/api/mcp/rpc"
}
}
}Indexed tools
Tool metadata and schemas come from the remote server and are untrusted. Indexing only lists tools; it never calls them.
10 shown · authentication required
call_tool
Run any Last Price tool by name, including one this connection does not list. Find the name and its arguments with search_tools first. What it does, and whether it changes anything, is what that tool says.
Schema valid · SHA-256 fbe50ef8b6a3…
View input schema
{ "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 100, "description": "The tool to run, e.g. \"list_webhooks\"." }, "arguments": { "type": "object", "description": "The arguments for that tool, as its input schema from search_tools describes. Defaults to {}." } }, "required": [ "name" ], "additionalProperties": false }compute_price
Compute a price. Returns the price, the function that produced it, the metered cost and a `trace` of each stage. Send currency plus unit_cost (what the work costs you) or current_price. Missing inputs return an error naming them. For a competitor offer, put competitor_price, competitor_currency and competitive_action in metadata. To pay for this one call with x402, pass payment (call without it to read the price). A result with valid_until (RFC 3339) holds only until then. confidence is the function's own 0 to 1 score for its price, not a probability that a buyer accepts. price_statement says what the answer is: a third party's estimate for you, or the workspace's commitment when a signed quote is attached.
Schema valid · SHA-256 8f91c600d39c…
View input schema
{ "type": "object", "properties": { "product_id": { "type": "string", "description": "Optional identifier of what is being priced." }, "product_type": { "type": "string", "enum": [ "saas", "ecommerce", "marketplace", "digital", "api", "custom" ], "description": "Optional category. Defaults to \"custom\"." }, "current_price": { "type": "number", "minimum": 0, "description": "The current or reference price. Optional: functions that price relative to an incumbent need it, but lastprice/cost-plus prices from unit_cost instead." }, "unit_cost": { "type": "number", "minimum": 0, "description": "What the work costs you. It lets lastprice/cost-plus price with no current_price, which is the usual case when pricing a task you are about to run. Routing picks a function that can use it; to require cost-plus, pass its UUID from list_functions as function_id." }, "target_margin_pct": { "type": "number", "minimum": 0, "maximum": 95, "description": "Margin on price for cost-plus, not markup on cost: price = unit_cost / (1 - margin). Defaults to 30." }, "outcome_terms": { "type": "object", "description": "Optional, for a price charged per outcome: when the outcome counts as failed and what is owed then. The result echoes the terms normalised, with complete false until success_definition, resolve_by and on_timeout are all set.", "properties": { "success_definition": { "type": "string", "maxLength": 500, "description": "What the buyer must see for the outcome to count." }, "resolve_by": { "type": "string", "description": "The deadline: an ISO 8601 duration from the quote (P30D, PT48H) or an RFC 3339 time. After it, with no success, the outcome has failed." }, "on_timeout": { "type": "string", "enum": [ "no_charge", "partial", "full" ], "description": "What is owed when the deadline passes without success." }, "timeout_share": { "type": "number", "exclusiveMinimum": 0, "exclusiveMaximum": 1, "description": "With on_timeout \"partial\": the fraction of the price owed, e.g. 0.3 for 30%." }, "evidence": { "type": "array", "items": { "type": "string" }, "maxItems": 10, "description": "What proves the outcome, e.g. [\"delivery_receipt\"]." } } }, "min_price": { "type": "number", "minimum": 0, "description": "Optional minimum acceptable price. A competitive offer needs this or a declared unit_cost and target_margin_pct." }, "max_price": { "type": "number", "minimum": 0, "description": "Optional maximum acceptable price." }, "currency": { "type": "string", "minLength": 3, "maxLength": 3, "description": "Three-letter ISO currency code, e.g. USD." }, "customer_segment": { "type": "string", "description": "Optional segment, e.g. enterprise." }, "geo": { "type": "string", "description": "Optional geography hint, e.g. US." }, "buyer_type": { "type": [ "string", "null" ], "enum": [ "agent", "person", null ], "description": "Optional. Who the price is for: an AI agent or a person. Recorded with the quote only." }, "buyer_agent": { "type": [ "string", "null" ], "maxLength": 100, "description": "Optional. The buying agent, e.g. chatgpt. A label recorded with the quote only." }, "buyer_ceiling": { "type": [ "number", "null" ], "exclusiveMinimum": 0, "description": "Optional. The most the buyer says it will pay, in the request currency (its budget, spend limit or offer cap). Never reaches the pricing function, so it cannot set the price; the model layer reads it as evidence about the buyer and checks it against what the buyer then does. Echoed in price_object.evidence.declared_ceiling." }, "payer": { "type": [ "string", "null" ], "enum": [ "agent_wallet", "person_card", "company_invoice", null ], "description": "Optional. Who pays, as distinct from who calls: an agent wallet, a person by card, or a company billed later." }, "channel": { "type": "string", "maxLength": 64, "description": "Optional. The sales channel, e.g. an agent marketplace. With a rate saved by set_channel_rates, the price covers the channel's cut." }, "routing_preference": { "type": "string", "enum": [ "cheapest", "fastest", "explicit", "round_robin", "weighted", "policy", "default" ], "description": "How to route across pricing functions. Defaults to \"default\"." }, "routing": { "type": "object", "description": "Optional. Which functions may answer this call, by UUID from list_functions. If none qualifies, the call is refused before any charge.", "properties": { "only_functions": { "type": "array", "items": { "type": "string", "format": "uuid" }, "minItems": 1, "maxItems": 50, "description": "Only these may answer." }, "excluded_functions": { "type": "array", "items": { "type": "string", "format": "uuid" }, "maxItems": 50, "description": "These may not answer, not even as a fallback." }, "preferred_functions": { "type": "array", "items": { "type": "string", "format": "uuid" }, "maxItems": 50, "description": "Tried first, in this order." }, "max_cost_per_unit": { "type": "number", "minimum": 0, "description": "Most you will pay per metered unit (rate x multiplier)." }, "max_latency_ms": { "type": "integer", "minimum": 1, "description": "Skip functions slower than this on average, and stop waiting after it." }, "allow_fallbacks": { "type": "boolean", "description": "false: fail instead of trying another function when the chosen one fails." } }, "additionalProperties": false }, "learned_routing": { "type": "boolean", "description": "Optional. With routing_preference cheapest, fastest, round_robin or weighted, let the router learn from your own calls which function serves you best (see get_learned_routing). Ignored with a function_id." }, "function_id": { "type": "string", "format": "uuid", "description": "Optional explicit pricing function UUID to use." }, "include_explanation": { "type": "boolean", "description": "If true, ask for an explanation and confidence with the price." }, "no_explore": { "type": "boolean", "description": "If true, give this price exactly as computed, without the small per-call variation a workspace may run so learned pricing can learn what buyers will pay (see get_price_exploration)." }, "include_buyer_envelope": { "type": "boolean", "description": "If true, with metadata.category set, the result adds buyer_envelope: what buyers' spend limits allowed in that category (pooled over 5 or more buyers) and where this price sits. It never changes the price." }, "metadata": { "type": "object", "description": "Optional context. Competitive pricing: competitor_price, competitor_currency and competitive_action (match, or undercut with undercut_pct); confirm the products are comparable. Or market_query (the job in plain words) to look up market prices instead." }, "idempotency_key": { "type": "string", "minLength": 8, "maxLength": 255, "description": "Optional. A new value (e.g. a UUID) for each call you mean to make; send the SAME value if you retry after a timeout or error you cannot interpret, and the call is computed and charged once. Ignored without a credential." }, "intent": { "type": "object", "description": "Optional. The spending limit the buyer approved, e.g. a card network mandate. The result says whether the price fits it.", "properties": { "id": { "type": "string", "minLength": 1, "maxLength": 200, "description": "The approval id from the rail or issuer." }, "max_amount": { "type": "number", "minimum": 0, "description": "The most the buyer approved." }, "currency": { "type": "string", "minLength": 3, "maxLength": 3, "description": "Three-letter ISO code. Defaults to the price currency." }, "merchant": { "type": "string", "maxLength": 253, "description": "The merchant the approval names. Carried into the quote as sent." }, "expires_at": { "type": "string", "format": "date-time", "description": "When the approval stops being valid (RFC 3339)." } }, "required": [ "id", "max_amount" ] }, "payment": { "type": "string", "minLength": 20, "maxLength": 8192, "description": "Optional. The signed x402 payment, base64, as sent in an X-PAYMENT or PAYMENT-SIGNATURE header; or, where the answer offers MPP tempo, the whole Payment-Authorization value (\"Payment \" and the credential). Omit it to read what the call costs and how to pay; nothing is charged until you send it." } }, "required": [ "currency" ], "additionalProperties": false }
Connections
streamable-http
https://api.last-price.ai/api/mcp/rpc?profile=lean
streamable-http
https://api.last-price.ai/api/mcp/rpc