Skip to main content
Glama
AiBadgr

Badgr — GPU Compute for AI Agents Copy

Official
by AiBadgr

badgr_serve

Deploy a persistent OpenAI-compatible LLM endpoint on GPU compute with required runtime and hourly price caps, returning endpoint URL and deployment IDs until stopped.

Instructions

Provision a persistent OpenAI-compatible endpoint for an LLM model. Returns endpoint_url, deployment_id, receipt_id. The endpoint stays up (billing runs) until badgr_down is called. Hard limits: max_price_per_hour ≤ $5/hr. max_runtime_minutes is REQUIRED — agents must not create open-ended billing. Always confirm with the user before serving.

Input Schema

NameRequiredDescriptionDefault
gpuNoGPU type: L40S, A100, H100, RTX_4090 (default: L40S)L40S
nameNoDeployment name (auto-generated if omitted)
modelYesHuggingFace model ID, e.g. meta-llama/Llama-3.1-8B-Instruct
regionNoOptional region preference.
gpu_countNoNumber of GPUs (default: 1)
max_price_per_hourNoMax spend cap in USD/hr (hard limit: $5/hr)
max_runtime_minutesYesAuto-terminate after this many minutes. Required — prevents runaway billing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses the persistent billing lifecycle ('stays up (billing runs) until badgr_down'), hard price cap, required runtime limit, and the need to confirm with the user. It also names key return values. Minor gaps remain, such as failure modes or provisioning time, but core safety and lifecycle traits are surfaced.

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

Conciseness5/5

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

The description is tightly structured: it front-loads the purpose, then covers return values, lifecycle, hard limits, and a safety confirmation in five efficient sentences. Every sentence contributes actionable information with no waste.

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 the absence of annotations and output schema, the description provides substantial context: purpose, return fields, billing lifecycle, required safety parameter, hard price cap, and user-confirmation rule. It is nearly complete for safe invocation, though it does not clarify behavior on provisioning failure or how the endpoint relates to similar sibling tools.

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 description coverage is 100%, so the schema already documents all seven parameters in detail. The description reinforces the required nature of max_runtime_minutes and the $5/hr price cap, but these are also present in the schema descriptions. It adds little parameter-specific meaning beyond the schema baseline, so a 3 is appropriate.

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 description states a specific verb and resource: 'Provision a persistent OpenAI-compatible endpoint for an LLM model.' This is clear and actionable. However, it does not distinguish this tool from sibling tools like deploy_model or run_workload, which could also be used for model deployment. The reference to badgr_down clarifies lifecycle but not when to choose badgr_serve over other launching tools.

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?

The description gives clear usage context: it is for persistent serving, billing runs until badgr_down is called, max_runtime_minutes is required, and the agent must confirm with the user before serving. This covers when to use and a key prerequisite. It stops short of explicitly comparing with alternatives like deploy_model or run_workload, so no full when-not guidance is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.