MCP tools
The Putnami MCP server at https://mcp.putnami.cloud/mcp serves 29 tools: 20 read tools and 9 write tools. This page lists each tool, what it does and what it needs. To connect a host, see Connect Claude, ChatGPT or Codex.
Scopes and permissions
Every tool call names a workspace, except list_workspaces. Putnami checks your permission in that workspace on every call.
| Scope | What it allows |
|---|---|
mcp.read |
The read tools |
mcp.act |
The write tools, together with mcp.read |
openid, email |
Identify your connected account and report whether its email is verified |
A call exchanges your host's token for a token that lives at most 5 minutes. It serves one workspace, for reading or acting, never both. A write needs your host's token to hold at least 90 more seconds. With less, the server asks your host to sign you in again first.
Read tools
A read changes nothing. Text that other people, agents or running apps wrote comes quoted, in a field that names its author. Your host quotes it and never follows it.
Find and read a change
| Tool | What it does | What it needs |
|---|---|---|
list_workspaces |
Lists your workspaces, with the id every other tool takes, and says in which ones you can validate. Call it first. | A sign-in |
list_pending_decisions |
Lists what waits for you in one workspace: declarations to approve, gaps to accept and decisions of your builds. Each item names the tool that resolves it and the commit or revision it was read at. | Read access to the workspace. workspace_admin marks an item you cannot resolve without platform.workspace.manage. |
get_change |
Reads one change (pr-<number>, a commit or rel_<id>): its stages to production, the verdict and its revision, each gap, each declaration at the base and at the head, and what the change touches: components, tests, coverage, dependency changes, open review findings and flaky tests. It marks what your own CI reported. |
Read access to the workspace |
search_work |
Finds the builds and the changes that mention a text, by state and author. author: me keeps your own builds. Changes are open unless change_state says closed or all. |
Read access to the workspace |
get_mission |
Reads one agent build: its plan, sessions, decisions and messages. Takes the build id, or the key of one of your own builds, such as issue-4883 or branch:main. |
Read access to the workspace |
get_factory_settings |
Reads who reviews pull requests and when, the most open findings of each severity a verdict lets through, who owns builds, and where agent sessions publish. Names who changed them and lists the last changes. | Read access to the workspace |
Read the code
| Tool | What it does | What it needs |
|---|---|---|
get_repository_map |
Reads the components of the repository and the edges between them, at the newest run of a branch. Names the commit and the run it read. depends_on lists up to 50 edges of each component. |
Read access to the workspace |
read_file |
Reads one file at a full commit id (40 or 64 hexadecimal characters), on any branch, whole or by start_line and end_line. |
source.code.read |
list_files |
Lists one directory, or the root, at a full commit id. 50 entries a page with next_cursor. |
source.code.read |
read_file and list_files read the code host at the commit, not the code index. A commit pushed only to a fork of the repository reads too. A commit of another repository answers not_found.
read_file answers at most 64 KiB. When it holds fewer lines than you asked, partial is true and next_start_line is the line to read next. A file over 256 KiB, a directory, a symlink, a submodule, a file that is not UTF-8 text and a path the commit does not hold answer a note and no content. list_files lists at most 1,000 entries of a directory: a longer list sets partial.
Read CI runs
| Tool | What it does | What it needs |
|---|---|---|
list_runs |
Lists the runs of a branch, of a change (pr-<n>) or of the workspace, newest first, 50 a page. For a change or a commit, it also lists the pipelines every CI ran for it, with the jobs that fail them. |
Read access to the workspace's runs |
get_run |
Reads one run: its phases, where its time went and, for a failed run, each failed task with its error and last output lines. With project, that project's log. With pipeline, the jobs that fail it and the last 50 lines (at most 8 KiB, redacted) of their failed step. |
Read access to the workspace's runs |
get_ci_health |
Reads how the workspace's CI behaved over 14 days by default (at most 90), whatever CI ran it: runs, failure rate, flaky and retried runs, durations and queue time for each workflow and job. | Read access to the workspace's runs |
get_run answers at most 10 failed tasks with 10 diagnostics each, and counts the ones it leaves out. A task's output is what your code printed: the answer marks it contributor.
Read what an app runs
| Tool | What it does | What it needs |
|---|---|---|
query_logs |
Reads what an app logged, newest first, by level and text. limit is at most 50. since: deploy:last reads the current revision. |
platform.observability.read |
query_metrics |
Reads an app's metric series by name prefix: 10 names a page, each with its newest 200 points. |
platform.observability.read |
query_traces |
Lists an app's traces, with a latency floor slow, or reads one trace with trace. |
platform.observability.read |
list_errors |
Lists the errors an app raised since its last deploy or a time, grouped, with count, first and last seen, and one sample. | platform.observability.read |
list_environments |
Lists each environment's workloads with revision, state and generation, and the deploy in progress. | Read access to the workspace |
list_releases |
Lists the releases of one workload with its revision and readiness in each. | Read access to the workspace |
get_configuration |
Lists the configuration keys and secret names of a project in one environment, and which are set or missing. Never a value. | Permission to read the status of secrets |
list_databases |
Lists the workspace's databases and, for a project and an environment, its bindings and the migration state of its last release. Answers no connection detail, grant or credential. | Permission to read databases. The migration state needs the deploy permission: without it, the answer is partial. |
Signal reads cover one app in one environment, prod unless you name another. Name the app as its workload is named, such as source/workloads/source-api, or by its last segment, such as source-api. A segment that several workloads share reads nothing and names them in a note.
since starts a window: an RFC 3339 time, a lookback such as 15m, 1h or 2d (at most 30 days) or, for logs and errors, deploy:last. Without since, a read starts one hour back; list_errors starts at deploy:last. until ends the window, or now. A page that the limit or 64 KiB cut answers next_cursor: send it back with the same app, environment and filters, and no since, until or limit.
Putnami redacts secrets before it answers: a value under a key such as authorization, token, password, secret, api_key or cookie answers [REDACTED]. A workspace whose telemetry is not provisioned yet says so.
Write tools
Each write acts in your name. Your host asks you before it calls one. Never pre-authorize a write tool.
| Tool | What it does | Who may call it |
|---|---|---|
approve_declarations |
Approves the declaration files you name, at the head commit you read. At most 100 files in one call. | A workspace admin (platform.workspace.manage) |
accept_gaps |
Accepts the gaps you name, at the verdict revision you read. | A workspace admin |
decide_finding |
Dismisses one open review finding of a pull request, with a reason of 1 to 500 characters, or accepts it (the reason is optional then). The decision stays, whatever a later review says. | A workspace admin |
set_factory_settings |
Changes the factory settings: send the revision and the whole settings get_factory_settings answered, with what you change. A severity threshold is 0 to 1000. |
A workspace admin |
answer_decision |
Answers one decision of your build with one of its options, by option id. Your host shows the question and the option's label. | The build's owner only |
message_mission |
Sends one message to your build's agent sessions. Send a new idempotency_key for each message. |
The build's owner only |
publish_proposal |
Opens or updates the pull request of a branch you pushed. The Putnami GitHub App writes it on your behalf and assigns you. ready: true takes it out of draft; auto_merge: true with it turns squash auto-merge on at the head just published. |
A workspace member whose GitHub login can write the repository now |
approve_cli_login |
Signs in the putnami CLI of your agent's session: it approves the code the CLI printed, for you and the workspace you name. It answers no token. |
You, for the CLI of your own session |
rerun_run |
Asks for a new attempt of a run, the whole run or one failed phase, with your reason. | A workspace member who has delivery.run.manage |
How a write behaves
Every write acts at exactly what you read. When the change moved since, or does not hold what you named, the tool answers moved and writes nothing more: read it again and decide again. accept_gaps is the exception. When the verdict moved past the revision you read, it accepts the gaps you named that the verdict still carries, and drops the others.
| Answer | Meaning |
|---|---|
not_allowed |
Putnami does not allow this for you in this workspace |
moved |
What you read has moved, or does not hold what the call named |
not_found |
Putnami holds nothing by that name in this workspace |
conflict |
Somebody acted on this first |
invalid_params |
Putnami refused the form of what the write sent. Read again and send the arguments as the read answers them |
refused |
Putnami or the code host refused the change. source_says quotes why when the code host named it |
unavailable |
Putnami could not answer now. The notes say whether the write may be stored |
rate_limited |
Too many calls in the last minute. Try again after retry_after seconds |
A write answered not_allowed, not_found, conflict, moved, refused or invalid_params stored nothing for what it refused.
After unavailable, retry as follows.
| Tool | Retry |
|---|---|
approve_declarations |
Send the file again. It sends one file at a time: the files approved before it stopped stay approved, and the answer names them. A stored file comes back in already_approved. |
accept_gaps |
Send the same call again. A gap whose acceptance was stored comes back in skipped. |
answer_decision |
Send the same answer again. It comes back with replayed set. |
message_mission |
Send the same text with the same idempotency_key. Putnami records it once. |
publish_proposal |
Send the same call again. GitHub keeps one open pull request for each base and head. |
decide_finding, set_factory_settings |
Read again before you send it again. |
rerun_run |
Read list_runs first. Each accepted call opens a new attempt. |
Declarations and gaps you can read
You approve only a declaration you could read whole. get_change offers the approval of each waiting file whose text it quotes whole. A file it cut, or that the platform did not serve, names putnami.app in approve_in: read and approve it there.
You accept only a gap whose project and requirement you could read whole. A gap whose name is cut, shows an escape, is longer than 512 bytes or has a space around it names putnami.app in accept_in: accept it there.
An acceptance has the scope of its gap kind.
| Gap kind | An acceptance holds |
|---|---|
no-requirement, unknown-requirements, unproven-requirement |
For the repository and project, until main no longer carries the gap |
unknown-impact, unknown-declarations, a lost proof, weakened-proof |
For this head commit only: a new push asks again |
unapproved-declaration |
Never accepted: only an approval clears it |
get_change and list_pending_decisions name the widest scope in accepted_for; accept_gaps names it in accepted_for_at_most. When main proved a requirement at the change's base, or when the platform cannot tell, an unproven-requirement acceptance holds for this commit only.
Publish a pull request
publish_proposal takes base, head, title and body. Send head_commit, the commit you pushed: a branch that moved since answers moved. To update a pull request you read, send its revision as expected_revision.
- Putnami checks first that your GitHub login can write the repository now. You need a GitHub sign-in: another sign-in answers
not_allowed. - A new pull request opens ready unless you send
draft: true. An open pull request stays as it is unless you senddraftorready. auto_mergeneedsready. A draft never gets auto-merge. When GitHub refuses auto-merge, the answer says so and the pull request stays published as written.- GitHub refusing the change itself, such as a branch with no commit beyond the base, answers
refused. - The merge queue's squash commit names you in its
Co-authored-bytrailer. - Your own approval of a pull request published for you does not count: the App is its author, so the merge queue requires approvals from others. Where a rule requires a code owner's review, the merge queue does not take it: a person merges it.
Text a write refuses
A write refuses a text or a name that holds a character you cannot see, or one that changes the order you read it in:
- Default-ignorable characters, such as a soft hyphen, a zero-width space, a bidirectional control, a variation selector, a Hangul filler or a Unicode tag character. So a subdivision flag, such as the flag of Scotland, is refused.
- Every other format character, three blanks (U+2800, U+16FE4, U+1D159) and a lone surrogate.
- A control character other than a line feed, a tab, or the carriage return of a line break. A name, a path, a project or a requirement refuses every control character.
Joiners pass in a text only where they join what you see: emoji sequences, keycaps and words of joining scripts such as Persian or Hindi. A name, a path, a project or a requirement refuses all joiners.
The server finds the characters you cannot see, not the characters that look like others. A Cyrillic о in a Latin word and the no-break space U+00A0 are visible: a write takes them. An answer shows a hidden character as an escape such as \u{200B} and counts them in hidden.
What the tools never do
- Merge, close or approve a pull request.
publish_proposalnever merges. - Start or cancel a CI run, or deploy.
rerun_runretries one run you name, once you agree. - Read a configuration value or a secret.
- Change, restart or scale a running app.
- Change code, search it, or build, test or lint.
- Approve every file by default: you name each file.
- Accept a gap that only its owner or Putnami can close.
- Answer a decision or message a build of another person.
- Keep anything: the server stores nothing between calls.
Limits
The server counts each limit per serving instance, in memory. The services behind it keep their own limits.
| Limit | Per person, per minute, per instance | Past it |
|---|---|---|
| Tool calls | 120 | rate_limited, with retry_after in seconds |
| Writes, each file sent counting one | 120 | rate_limited; a write stopped midway names what it did before |
One call sends its writes within 60 seconds. An approve_declarations call still sending after that stops before the next file, answers unavailable and names the files it approved. Send the other files again.
Every answer says what it could not read. An empty list with partial set does not mean that nothing waits. An answer holds at most 64 KiB. A page of list_pending_decisions that does not fit holds fewer items: read the rest with its next_cursor. A write answer that does not fit keeps the files and gaps that fit and counts the others in unlisted.