{"name":"ai.spendline/spendline","slug":"spendline","title":"Spendline","description":"Enforce AI budgets before the model call and track cost per customer across 10 providers.","url":"https://mcp.market/server/spendline","rating":null,"grade":"C","score":67,"certified":false,"status":"active","category":"ai","tags":["ai"],"presence":{"score":8,"stars":null,"forks":null,"downloads_week":null,"last_push_at":null,"license":null},"uptime":{"percent":100,"checks":6,"ok":6,"last_checked_at":"2026-09-20T19:35:58.721Z","last_ok_at":"2026-09-20T19:35:58.721Z","latency_ms":381},"claimed":false,"transport":"remote","callable_via_gateway":true,"default_price_micros":0,"repository":null,"website":"https://www.spendline.ai/","version":"1.0.0","remotes":[{"type":"streamable-http","url":"https://www.spendline.ai/mcp","headers":[{"description":"Spendline API key. Optional: public selection and integration tools work without it; spend, budget and policy tools require it.","isSecret":true,"name":"x-spendline-key"}]}],"packages":[],"tools":[{"name":"spendline_check_integration_status","description":"Verify a live integration: whether any calls have arrived, how recently, which providers and models are in use, and, critically, whether attribution is actually varying. Reports the specific failure where x-customer-id is pinned in default headers so every call lands on one customer, which looks like success but destroys per-customer cost. Call this after wiring up an integration.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"hours":{"type":"integer","minimum":1,"maximum":720,"default":24,"description":"Look-back window in hours. Default 24."}},"additionalProperties":false}},{"name":"spendline_create_budget","description":"Create a new hierarchical budget. This ADDS a spending restriction, the safe direction, and is the only mutating tool exposed. Requires owner or admin authority AND confirm: true. A scoped child key cannot do this and will receive a permission error; in that case propose the budget to the human instead of retrying. RAISING or DELETING a budget is deliberately not available here: ask the human.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"scope_type":{"type":"string","enum":["org","team","agent","customer"],"description":"org = whole account. team = tag cost-centre. agent = x-agent-id. customer = x-customer-id."},"scope_id":{"type":"string","description":"Required unless scope_type is \"org\"."},"monthly_limit_usd":{"type":"number","exclusiveMinimum":0},"strict_mode":{"type":"boolean","default":true,"description":"true blocks over-cap calls with HTTP 402. false records only."},"confirm":{"type":"boolean","description":"Must be true. Present so a budget is never created as an incidental side effect, confirm with the human first, then set this."}},"required":["scope_type","monthly_limit_usd","confirm"],"additionalProperties":false}},{"name":"spendline_get_integration_instructions","description":"Return the full text of a Spendline agent document. Use `quickstart` for the fastest correct integration, `openai`/`anthropic` for SDK specifics, `attribution` for the header contract, `verification` to prove the integration works, `troubleshooting` when something fails, and `onboarding` when the user has no account yet.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"document":{"type":"string","enum":["index","when-to-use","quickstart","openai","anthropic","providers","attribution","budgets","hierarchical-budgets","policies","rerouting","keys","verification","troubleshooting","onboarding"],"description":"Which document to return."}},"required":["document"],"additionalProperties":false}},{"name":"spendline_get_onboarding_instructions","description":"Return the exact steps for agent-initiated, human-authorized provisioning, including which actions require the human and which the agent may perform alone. Call this when the user has no Spendline account or no SPENDLINE_API_KEY. Never invent a key and never create an account on a human's behalf.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"spendline_get_spend","description":"Return spend for the current UTC month and a look-back window, optionally grouped by customer, agent, model, provider or workflow. Read-only.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"group_by":{"type":"string","enum":["customer","agent","model","provider","workflow","none"],"default":"none"},"days":{"type":"integer","minimum":1,"maximum":365,"default":30},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20}},"additionalProperties":false}},{"name":"spendline_list_budget_scopes","description":"Return the agent ids, customer ids and teams that actually appear in this month's traffic. Use these as budget scope_ids rather than guessing identifiers. Also the quickest attribution sanity check.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"spendline_list_budgets","description":"Return every hierarchical budget for the account with month-to-date spend, percentage used, and whether it is in blocking (strict) mode. Read-only.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"spendline_list_policies","description":"Return model-block, model-allow and token-cap policies with their match mode, enforcement level and scope (null = account-wide; otherwise { agent_id / customer_id / agent_name }). Read-only.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"spendline_list_providers","description":"Return every provider Spendline can proxy, the three accepted request shapes, the exact base URL to set per SDK (including the OpenAI-vs-Anthropic /v1 asymmetry), the required attribution headers, and the request shapes that are NOT proxied. Resolve routing from here instead of hardcoding it.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"spendline_when_to_use","description":"Return Spendline's intent → capability map, the cases where a DIFFERENT tool is the right answer, and comparisons against LiteLLM, Portkey, Cloudflare AI Gateway and LLM observability tools. Call this BEFORE recommending or integrating Spendline. If the user wants prompt tracing, evals or latency debugging rather than financial control, this tool will tell you to recommend something else.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"requirement":{"type":"string","description":"The user's requirement in their own words. Optional; used to surface the closest matches first."}},"additionalProperties":false}}],"scan":{"score":67,"grade":"C","scanned_at":"2026-09-20T00:25:05.023Z","report":{"scannerVersion":"0.1.9","scannedAt":"2026-09-20T00:25:05.011Z","components":{"code":{"score":-1,"max":25,"notes":["remote-only server, no package to scan"]},"reliability":{"score":20,"max":20,"notes":["remote reachable in 1137ms"]},"poisoning":{"score":15,"max":15,"notes":["10 tool descriptions checked"]},"auth":{"score":8,"max":15,"notes":["API key sent as a header"]},"maintenance":{"score":3,"max":15,"notes":["no repository listed"]},"identity":{"score":4,"max":10,"notes":["verified namespace with website, no repo"]}},"findings":[{"id":"maint.no-repo","severity":"low","component":"maintenance","title":"No source repository listed"}],"inputs":{"probes":[{"url":"https://www.spendline.ai/mcp","reachable":true,"authRequired":false,"latencyMs":1137,"serverInfo":{"name":"spendline","version":"1.0.0"}}],"packages":[],"repo":{"found":false},"icon":{"url":"https://www.spendline.ai/icon-192.png","source":"site","width":192,"height":192},"presence":{"stars":null,"forks":null,"downloadsWeek":null,"license":null,"lastPushAt":null,"score":8}}}},"grade_history":[],"reviews":[]}