AgentDBA & Business Context

In the last post I registered AgentDBA as an MCP server in Claude Code. This time I give Claude two more sources alongside it: tickets.csv – a ticket history and databases.md – a database register with tiers and owners. Then I ask one question:

Run the AgentDBA health check, then use tickets.csv and databases.md to tell me what’s going on.

Read more: AgentDBA & Business Context

What Claude receives from AgentDBA

Claude finds the two files, then calls run_health_check over MCP. AgentDBA runs its normal health check and hands back a structured result:

Coverage comes first: which checks ran, their worst severity and how many findings each produced, before any finding detail. Claude sees what was and wasn’t checked before it sees what was found.

The joined-up answer

With the ticket history and the register next to AgentDBA’s findings, this is what comes back:

Two examples of what no single source could produce:

  • OrderProcessing. AgentDBA reports four offline databases. The register says this is the one that matters, because it is Tier 1. The tickets say why it is offline: a SAN move whose file copy finished at 06:30 on 25 Nov and is still waiting for sign-off, while orders queue.
  • Backups. AgentDBA reports the backup jobs as disabled, with no successful backup for about 56 days. A change record from 1 Oct disabled them for a backup share move and was never closed.

Cutting it down to today’s actions

That is a lot to read, so I ask for the top three actions:

Look at action 3. log_file_health did not run in this health check, and Claude says so and suggests re-running it, rather than assuming the logs are fine.

Business context, not just SQL diagnostics

A follow-up question: who owns the critical databases?

Claude states its assumption up front (critical means Tier 1 in the register) and answers from the register and the tickets. AgentDBA cannot know any of this. It measures the server; the team’s knowledge lives elsewhere.

Did Claude stay within the evidence?

That was the open question from the last post. Mostly, yes:

  • It flagged what it could not confirm. The login failures match the outage ticket, but AgentDBA did not capture which database they targeted, so Claude called it consistent with the outage but not confirmed.
  • It said which links were its own. On backups, the dates line up, but AgentDBA did not link the two itself, and Claude said so.
  • It treated a check that did not run as unknown, not clean.

Where it went further than the evidence:

  • The backup heading states the unclosed change as the cause. The evidence is strong, but that is Claude’s conclusion, not AgentDBA’s.
  • “The web shop is losing orders” is stronger than the ticket, which says orders are queuing.

That is the split I want: AgentDBA owns the measurements, Claude owns the context, and the answer says which is which. The next step is making that split hold every time, not just most of the time.

Integrating AgentDBA into Claude Code with MCP

The goal is simple: register AgentDBA as an MCP server in Claude Code, so Claude can call it from the console alongside other sources such as other agents, documentation and CSV files and give a fuller diagnostic picture than either could on its own.

Read more: Integrating AgentDBA into Claude Code with MCP

High Level Approach

How it fits together

On my dev server, the flow looks like this:

Key elements

  • A small adapter. A few hundred lines of Python on the official MCP SDK. It offers Claude one tool: run_health_check.
  • AgentDBA does all the work, unchanged. It still applies its licence check, its SQL guardrails and its rules against linking findings without evidence. The adapter only starts it, waits, and passes the result back.
  • One command to register it. claude mcp add-json tells Claude Code how to start the adapter. From then on, Claude Code starts it automatically in each session, and you just ask in plain English.

Seeing it in Claude Code

With the adapter registered, I start Claude Code:

Then I type /mcp to list the MCP servers Claude Code knows about:

agentdba-dev appears under Local MCPs, connected, with one tool.

What this gives me

  • AgentDBA becomes a building block. Any MCP client can call it, not just its own chat or web UI. Claude Code is the first.
  • Context AgentDBA could never see. AgentDBA knows what it measured. Claude can now join that with what your team knows: tickets, the database register, owners and tiers.
  • The discipline stays inside AgentDBA. Measurement, evidence rules and confidence scoring all happen before anything leaves it. Claude receives validated conclusions, not raw data, so its job is to add context rather than re-diagnose. Many SQL Server MCP servers work the other way round: they hand raw DMV data to the model and let it do the diagnosis.

Next

Next session I will show AgentDBA working alongside other tools, and test the open question: when Claude combines AgentDBA’s findings with ticket history, does it stay within the evidence, or start inventing links?

Claude Context Window

Every Claude conversation has a context window. It is the total amount of text Claude can work with in a single chat — your messages, its replies, uploaded files, tool results, and system instructions all count.

A few habits make a big difference.

1. Avoid endless refinement loops

If you are constantly asking Claude to rewrite, adjust, shorten, expand and rework the same answer the conversation can become noisy. Sometimes it is better to edit the original prompt with clearer instructions, or start a fresh chat with the improved version of the task.

This gives Claude a cleaner starting point

2. Use Projects for repeated context

If you keep pasting the same background information into Claude, use a Project.

Projects let you keep related chats, instructions and uploaded knowledge together. This is useful for recurring work such as a product, blog series, codebase, research topic or business process.

3. Be selective with files and links

Large documents, PDFs, long articles and big code files can consume a lot of context.

That does not mean you should avoid them. It means you should be specific. Tell Claude which sections matter, what question you are trying to answer, and what output you want. A focused request usually produces a better answer than dumping everything into the chat and hoping the model works out what matters.

4. Keep setup simple

Tools can add extra content into the conversation. Web search, MCP tools, connectors and code execution can all be useful, but they can also add tool results, logs, retrieved content or intermediate outputs into the working context.

If a task does not need a tool, keep the setup simple.

5. Use extended thinking for harder work

Extended thinking is best used for more complex tasks: debugging, planning, architecture, analysis, reasoning-heavy writing or multi-step problem solving. For simple questions, it may add latency and extra token usage without much benefit.

Claude Desktop

Claude is more than a chat window. The desktop experience includes structured workspaces, generated outputs, integrations, execution capabilities, memory and reusable workflows. This is a quick introduction to some of the main areas worth knowing.

Projects

Projects are self-contained workspaces.

Each project can have its own chats, custom instructions and uploaded knowledge. That means you can provide Claude with reference material once such as documentation, style guides, project notes or internal standards — and keep related work grouped together instead of re-explaining context in every conversation.

Artifacts

Artifacts are outputs that appear alongside the conversation when Claude generates something substantial. That might be code, a document, a diagram, a React component or an interactive visualisation. The key benefit is separation: you can inspect, edit and iterate on the output independently from the chat itself.

Connectors

Connectors allow Claude to work with external tools and services.

Examples include Google Drive, Slack, GitHub and other connected systems. Instead of manually copying information into a prompt, Claude can work with data where it already lives — searching files, analysing content, summarising information or assisting with connected workflows.

Anthropic states that connectors operate using the user’s existing permissions within the source system rather than bypassing access controls.

Capabilities

Capabilities define what Claude is allowed to do within the environment.

One of the most practical examples is code execution and file generation. When enabled, Claude can run code inside a sandboxed execution environment and generate downloadable outputs such as spreadsheets, presentations, documents and PDFs.

There are also controls around sandbox networking. A restricted or limited network posture is generally the safer default; broader network access should be enabled deliberately and only when required for the task.

Skills

Skills help Claude perform specific tasks or workflows more reliably. You can think of a Skill as a reusable operational playbook. An organisation might create Skills for coding conventions, document formatting, review processes or internal operating procedures.

Claude can also make use of built-in Skills behind the scenes, helping structure how it approaches certain categories of work.

Final thoughts

Claude Desktop is not simply a conversational interface.

It combines workspace management, generated outputs, execution tooling, integrations and reusable task guidance into a broader working environment for building, analysing, writing and automating knowledge work

Claude.ai vs Claude API

You have used Claude. But which Claude?

The Claude app (claude.ai, the desktop and mobile apps) is the chat product you talk to. The Claude API is the developer platform other products are built on. Same intelligence underneath, completely different audiences and ambitions. Here is what each one is for.

Claude “The App”

This is the chat product at claude.ai, the desktop app and the mobile app – probably the most commonly used and understood one – below screenshot shows the windows desktop.

Used by everyone and anyone such as Knowledge workers, writers, analysts, students, founders. If you can type a question, you can use it.

The aim: Open it, ask, get work done. Everything is bundled in — chat, web search, file creation, connectors to Google Drive, Gmail, Slack, artifacts for code and documents, skills for domain expertise, projects for separation of areas and memory across chats. You pay a monthly subscription and Anthropic runs the infrastructure – such as free, pro, max 5x and 20x.

Claude API (the developer platform)

Raw access to the models, plus the same building blocks the app uses exposed for you to compose into your own product. This is for the developers, engineers, product teams, people building AI into their own software with agents and workflows. You write the code, manage the tokens, hooks, MCP and design the UX.

Key takeaway: if you want to build something with Claude, you want the API.

What about Claude Console?

A central location where you can do administration such as generate API keys, monitor usage / costs, set spending limits and test prompts in the Workbench before wiring them into your code. The API is what your application calls. The Console is how you manage it. You will probably need both.

Claude Code?

Claude Code is the CLI for developers. It is built on the API but you talk to it like the app — it edits files, runs tests, executes shell commands, all from your terminal. If you write software this is super useful for you too – yes it works great with the terminal but also with Visual Studio.

Summary

The app is for people who want answers. The API, console, Claude code is for people who want to build. Pick the one that matches what you are trying to do. Hopefully this helps you understand what is out there (and subject to fast change!)