# Code Deb Tools API and AI integrations

Connect Code Deb public utilities to AI agents, browsers, applications and command-line clients. Code Deb (codedeb.com) is the publisher in Nepal. No specific AI model or SDK installation is required; the host must support HTTP, MCP or browser tool execution.

## Start here

- [Searchable tool catalog](/tools-api/v1/catalog) — find tools by task and inspect their execution modes.
- [Complete capability manifest](/tools-api/v1/manifest.json) — all canonical tool pages, supported operations and execution modes.
- [OpenAPI 3.1 reference](/tools-api/v1/openapi.json) — exact public HTTP operation schemas.
- [Public MCP server card](/mcp/tools.json) — Streamable HTTP connection metadata.
- [Browse the tools](/tools) — human-operated utilities and usage guides.

## REST quickstart

Discover a tool using GET, then fetch its operation schema. POST a JSON object matching that schema. The bounded public API does not require an API key.

```bash
curl -fsS 'https://www.codedeb.com/tools-api/v1/catalog?q=calendar'
curl -fsS 'https://www.codedeb.com/tools-api/v1/operations/codedeb_ad_to_bs'
curl -fsS -H 'Content-Type: application/json' \
  --data '{"date":"2026-11-03"}' \
  'https://www.codedeb.com/tools-api/v1/execute/codedeb_ad_to_bs'
```

The example converts the date to 2083-07-17 BS. Inspect the `ok`, `result` and evidence fields. Invalid inputs are not successful executions.

## Remote MCP

Connect a compatible MCP host to `https://www.codedeb.com/tools-mcp` using Streamable HTTP. Initialize the session, discover schemas with `tools/list`, then call an operation using `tools/call`. This server is distinct from the [authenticated business MCP](/docs/mcp). Individual AI applications may require a connector, approval or configuration.

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "codedeb_find_tools",
    "arguments": {
      "query": "convert AD to BS"
    }
  }
}
```

Use `codedeb_tool_information` with a tool slug and `codedeb_operation_schema` with an operation name. Select only relevant schemas for small context windows. A model without network or tool access cannot execute a remote request by itself.

## Browser WebMCP and execution modes

| Catalog mode | Supported execution |
| --- | --- |
| shared-execution | Supported operations through REST, remote MCP and compatible browser WebMCP. |
| browser-local-file | The user selects local files and approves browser processing. |
| browser-authorized-download | Explicit authorization for eligible public media in the browser. |
| website-only | Human interface; no execution adapter is advertised. |

See the [Facebook Reels Downloader](/tools/facebook-reels-downloader) and its [capability descriptor](/tools-api/v1/catalog/facebook-reels-downloader) for an example. Browser-only tools do not imply anonymous remote media download. Protected media services require separate authorization.

## Download artifacts

Repeat the same valid REST POST with `?download=1` to receive actual result bytes as an attachment. It is not a stored GET download URL. Supported exports include CSV, SQL, JSON, ICS and escaped HTML source.

```bash
curl -fsS -H 'Content-Type: application/json' \
  --data '{"schema":"id:id\nemail:email","count":2,"seed":1}' \
  'https://www.codedeb.com/tools-api/v1/execute/codedeb_generate_mock_data?download=1' \
  -o sample.csv
```

## Errors and privacy

HTTP 400 denotes invalid or excessive input/output, 403 a denied origin, 404 an unknown or non-remote operation, and 405 an unsupported method. MCP callers must inspect `isError`. Respect rate limits and temporary failures. Never send secrets, private files or actual employee or bank records to anonymous utilities. Generative AI video and authenticated remote binary processing are not part of this public API.

## Discovery references

- [AI-readable index](/llms.txt)
- [Agent integration reference](/docs/agents.md)
- [Public AI tools manifest](/.well-known/ai-tools.json)
- [Agent resource catalog](/.well-known/ard.json)
- [XML documentation sitemap](/sitemap-docs.xml)
- [Developer resources](/docs/resources)

Search engines and AI crawlers discover and index pages on their own schedules. An indexed website is not an automatically installed tool in an AI application.
