> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doconda.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Strands Agents

> Generate Word, PowerPoint, Excel and PDF files from an AWS Strands Agents agent on Amazon Bedrock.

```bash theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
pip install strands-agents doconda
```

## With the Python SDK

`doconda.tools()` is JSON Schema, the same format as a Strands tool spec:

```python theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
import json
import os

from doconda import Doconda
from strands import Agent
from strands.models import BedrockModel
from strands.tools import PythonAgentTool


def as_strands_tool(t):
    def run(tool_use, **_):
        out = t.run(tool_use["input"])
        return {"toolUseId": tool_use["toolUseId"], "status": "success", "content": [{"text": json.dumps(out)}]}

    spec = {"name": t.name, "description": t.description, "inputSchema": {"json": t.input_schema}}
    return PythonAgentTool(t.name, spec, run)


agent = Agent(
    model=BedrockModel(model_id=os.environ["BEDROCK_MODEL_ID"]),
    tools=[as_strands_tool(t) for t in Doconda().tools()],
)

agent("Create a 5-slide presentation on our quarterly results")
```

Credentials come from your AWS environment (`AWS_REGION`, `AWS_ACCESS_KEY_ID`…). `BEDROCK_MODEL_ID` is any model
enabled in your Bedrock account. With the [Python SDK](/en/sdk/python).

## With MCP

```python theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
import os

from strands import Agent
from strands.models import BedrockModel
from strands.tools.mcp import MCPClient

doconda = MCPClient(
    url="https://api.eu.doconda.com/mcp",
    headers={"Authorization": f"Bearer {os.environ['DOCONDA_API_KEY']}"},
)

agent = Agent(model=BedrockModel(model_id=os.environ["BEDROCK_MODEL_ID"]), tools=[doconda])
agent("Make an Excel file with the event budget")
```

To use it locally, instead of the remote server:

```python theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
from mcp import StdioServerParameters, stdio_client
from strands.tools.mcp import MCPClient

MCPClient(lambda: stdio_client(StdioServerParameters(command="npx", args=["-y", "@doconda/mcp"], env={"DOCONDA_API_KEY": "ak_eu_…"})))
```

## On Amazon Bedrock AgentCore

The agent is the same: deploy it to AgentCore Runtime like any Strands agent. Keep the Doconda key as a secret
(`DOCONDA_API_KEY`), not in the code.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.