Each example below is a workflow you can run in any MCP-aware AI tool with the relevant Amps MCP server installed. Each names the prompt, the calls the agent should make, and the grounded answer to expect. If your client is not yet wired up, follow the install guide.Documentation Index
Fetch the complete documentation index at: https://docs.amps.ai/llms.txt
Use this file to discover all available pages before exploring further.
Documentation MCP examples
Workflows that exercise the Documentation MCP: search the docs corpus, query the OpenAPI spec, build something from grounded vocabulary.1. Write the curl for charging a battery overnight
Prompt:Write the exact curl request to schedule a battery to charge overnight from 22:00 to 05:00 UTC, ramping to 90% on deviceWhat the agent does:dev_abc123. My API key is in$AMPS_API_KEY.
- Calls
search_amps_ai_documentationwith"charge battery overnight". The top result is the cookbook recipe atguides/cookbook/charge-overnight. - Calls
query_docs_filesystem_amps_ai_documentationwithcat /guides/cookbook/charge-overnight.mdxto read the worked walkthrough. - Calls
query_docs_filesystem_amps_ai_documentationwithrg -C 5 "windowed" /concepts/canonical-actions.mdxto confirm thewindowedshape.
POST /battery/dev_abc123 with the windowed shape: command: "charge", parameters.target: { value: 90, unit: "percent" }, start and end as ISO 8601 timestamps. The response cites the canonical actions page and the cookbook recipe.
2. Validate a config against the canonical battery modes
Prompt:Here is our internal battery profile. Check whether every mode it references is a canonical Amps mode, and flag any that are not:What the agent does:
- Calls
query_docs_filesystem_amps_ai_documentationwithcat /openapi/openapi.json | jq '.components.schemas.BatteryAction'to read the canonical action discriminator straight from the spec. - Cross-references the modes in the YAML against the
commandenum:charge,discharge,idle,auto.balanced,auto.reserve,auto.export. - Calls
query_docs_filesystem_amps_ai_documentationwithrg -C 2 "auto.balanced" /concepts/canonical-actions.mdxto ground the explanation of the closest matches.
selfconsumption (not canonical, suggest auto.balanced) and gridcharge (not canonical, suggest charge), and confirming the rest. The response links to the canonical actions page so a reviewer can verify.
3. Build a webhook receiver
Prompt:
Build a minimal Flask endpoint that receives Amps webhooks, verifies the signature, dedupes on event id, and prints the action ID. Use my WEBHOOK_SECRET env var.
What the agent does:
- Calls
search_amps_ai_documentationwith"webhook signature verification". Top results include the webhook security guide and the webhook types reference. - Calls
query_docs_filesystem_amps_ai_documentationwithcat /guides/webhooks/verify-signatures.mdxto read the verification pattern and the existing Python example. - Calls
query_docs_filesystem_amps_ai_documentationwithcat /reference/webhook-types.mdxto confirm thepush.completedpayload shape.
processed_events set guarding idempotency, and a handler that pulls actionId and deviceId out of the payload. The canonical webhook payload structure is quoted verbatim.
4. Find every cookbook recipe that schedules an action ahead of time
Prompt:Show me every Amps cookbook recipe that schedules an action ahead of time. For each, summarise the request body shape.What the agent does:
- Calls
query_docs_filesystem_amps_ai_documentationwithrg -l "\"start\"" /guides/cookbook/to find recipes carrying astartfield in their request bodies. - Calls
query_docs_filesystem_amps_ai_documentationwithhead -120 /guides/cookbook/charge-overnight.mdx /guides/cookbook/discharge-windowed.mdxto read the matches in one call. - Calls
search_amps_ai_documentationwith"scheduled execution"to ground the canonical shape distinction.
start only (scheduled), discharge-windowed uses start and end (windowed). The canonical action body is quoted for each recipe with a link back to the concept page on per-mode execution.
5. Add the Documentation MCP to a CI pipeline
For automated checks that do not run inside an interactive AI tool, the MCP endpoint is a JSON-RPC HTTP service. A CI step can call it directly withcurl and parse responses with jq.
Use case: fail CI when an internal config file references a mode that is not in the canonical battery action enum.
Execution MCP examples
Coming soon. The Execution MCP is in development. Worked examples will land alongside the
@amps-ai/mcp package release.get_battery, surfaces a confirmation primitive built from the device’s capability declaration, fires push_battery on confirm, then wait_for_action to surface the lifecycle. See Self-describing responses, Dynamic UI rendering, and Confirmation gates for the patterns the worked examples will demonstrate.
What next
Cookbook
Real, end-to-end recipes the agent can read with a single
cat.Canonical actions
The vocabulary the MCP servers keep your agent grounded in.
API reference
Exact endpoint shapes, generated from the same OpenAPI the MCP serves.
Tool reference
Inputs and outputs for every MCP tool, with more call patterns.