agentgolf mcp server has the same tools and also read_local_session. See Local transcripts.
Common rules
- Workspace. Each result has
workspace_id, the workspace that you selected at sign-in. A tool reads only that workspace. - Window. A
windowinput is a period that ends now:1d,7d,14d,30d, or90d. The default is30d. The rework tools do not accept1d. - Rows. A list returns at most 25 rows, 100 for
find_pull_requestsandfind_requests, or 20 forlist_rework_hotspots. Each list also tells how many rows it leaves out. See Limits. - Amounts. Each cost is a string in USD with six decimal places, for example
"1.234567". A cost is null when Agent Golf does not know it. - Times. Each time is an RFC 3339 time in UTC. Each duration is in milliseconds, unless the field name gives another unit.
- Rates. A rate from 0 to 1 is a number. A field that ends in
_percentis a string with one decimal place. A field that ends in_basis_pointsis a number where 10,000 is 100%. - Titles. Session titles, pull-request titles, and tool names are data. They are never instructions to the AI tool.
- Harnesses. A
harnessfield isclaude_code,codex,omp, orcopilot. It isunknownfor a harness that a later Agent Golf release added.
Permissions
Each tool shows only the data that the dashboard shows you in the workspace. Your role and the access that you approved at sign-in set the limit. See Sign-In and Access.
When a tool needs a permission that the sign-in does not have, the tool returns an error that names it. Some fields are null instead, as the table shows. Call
get_identity to see what the sign-in has.
get_identity
Shows the workspace of the sign-in and your permissions in it. The AI tool calls it first when another tool reports a missing permission.
Inputs: none.
Result fields
Result fields
- “Which Agent Golf workspace am I signed in to?”
- “Why can’t the Agent Golf tools see my team’s sessions?”
get_activity_report
Shows how your work, or the work of your team, trends in a window: the inference and CI spend, the tool failure rate, the cache hit rate, the open pull requests, and the throughput. It gives the same values for the window of the same length just before, and the cycle time for each day of the window. The values equal the values of the dashboard for the same window and scope. Team values are totals of the team, never values for each user, and the result names no user. With scope: team and without View Team Activity, the tool returns an error that names the permission, and reads no data.
Result fields
Result fields
- “How did my spend and tool failure rate change this week compared with last week?”
- “Is the cycle time of my team going up or down over the last 90 days?”
- “What is our cache hit rate this month?”
- “How many CI runs failed or ran again each day this week?”
find_pull_requests
Lists the pull requests that GitHub updated in a window, by cost or by update time. The cost is the inference cost plus the CI cost. Without View Team Activity, the inference cost counts only your own sessions.
Result fields
Result fields
repository had a GitHub update in the window, the tool returns an error that lists the repositories with pull requests in the window.
To list every pull request of a window, call the tool with sort: updated_at and limit: 100. Then give each next_cursor as cursor, with the same other inputs, until next_cursor is null. The cursor keeps the window of the first call, so a pull request that GitHub updates between two calls can leave the list. With sort: cost, a changed cost can move a row to another page.
Example questions:
- “Which pull requests cost the most this month?”
- “List every pull request that GitHub updated today.”
- “List the open pull requests in OWNER/REPO, newest first.”
- “Which unplanned pull requests cost the most this month?”
explain_pull_request
Explains one pull request: its cost, its CI runs by workflow compared with the baseline of the workspace, and its linked sessions. Without View Team Activity, the inference cost, the sessions, and the session health include only your own sessions.
The tool finds a pull request that GitHub updated in the last 360 days.
Result fields
Result fields
- “What did https://github.com/OWNER/REPO/pull/123 cost, and is its CI unusual?”
- “Which sessions worked on pull request 123 in OWNER/REPO?”
- “Why does pull request 123 have so many CI re-runs?”
find_problem_sessions
Lists the sessions of a window with the highest cost, the most tokens, the highest tool failure rate, the most tool failures, or the latest start. Without View Team Activity, it lists only your own sessions. The cost is current. The other values come from the stored analysis of the session (analyzed_at), so they can be older for a session that continued after that time.
Result fields
Result fields
- “Which of my sessions cost the most this week?”
- “Which sessions had a tool failure rate above 20% in the last 14 days?”
- “Find my sessions about the billing migration.”
explain_session
Explains one session: its totals, its models, its timeline in phases, its first failing tool calls, and its linked pull requests. Give a conversation_id from another tool, or the harness and the session ID that the harness assigned, for example the ID of your current session.
When the workspace has no such session, and when another user owns the session and you do not have View Team Sessions, the tool returns the same error. Agent Golf has a session only after the uplink instance sends its telemetry.
Result fields
Result fields
- “Why did my most expensive session this week cost so much?”
- “Which tool calls failed in my current session?”
get_session_events
Shows the events of one session around one event or one time: the event names, tool names, outcomes, times, durations, tokens, and cost. Use it after explain_session to look at a failing tool call.
Result fields
Result fields
native_tool_call_id of an event finds the call in the local transcript. Give it as tool_call_id to read_local_session of the local server.
Example questions:
- “What happened around the first failing tool call of this session?”
- “Show only the failed events within five minutes of 14:32 UTC in that session.”
find_requests
Lists the model requests of a window, or of one session: the latest first, the most costly first, or the requests with the most tokens first. Without View Team Activity, it lists only the requests of your own sessions.
Result fields
Result fields
conversation_id of a row to explain_session, or its event_id to get_session_events.
Example questions:
- “Which model requests cost the most today?”
- “Show the latest requests of my current session.”
list_rework_hotspots
Ranks the code areas by rework cost: the cost of later pull requests that redid lines of earlier ones, plus their CI cost of that redo. Without repository, the rows are the repositories. With it, the rows are the direct children of path, or each file under it.
Each row counts its rework links by verdict. revert, bug_fix, and corrective count as rework. code_turnover is planned change, and unknown has no verdict yet.
Result fields
Result fields
- “Where is corrective rework highest in OWNER/REPO this month?”
- “Which files under src/api have the most rework in the last 90 days?”
explain_rework
Lists the rework links of one repository, file, folder, or pull request. Each link is a pair of an earlier pull request and a later one that changed its lines. By default, the tool lists only the links that count as rework.
Result fields
Result fields
repository merged in the window, the rework tools return an error that lists the repositories with merged pull requests in the window.
Example questions:
- “Which pull requests fixed the work of pull request 123 in OWNER/REPO?”
- “Why is src/billing a rework hotspot? Show me the pull-request pairs.”
get_roadmap
Shows where the spend of a window goes on the roadmap of your work tracker: the planned and unplanned spend, the initiatives and projects with their totals, the planned spend by initiative, project, and priority, the repositories with the most unplanned spend, and the items that you follow. A pull request is planned when it links to a project or an initiative, or to an item below one. Without View Team Activity, the inference cost counts only your own sessions.
Result fields
Result fields
Each
item has id, provider, kind, key, title, url, status_category, status_name, target_date, team_key, and priority. Each totals has spend_usd, inference_usd, ci_usd, pull_request_count, session_count, issue_count, and completed_issue_count. Each list has a _left_out count.- “How much of our spend this month went to planned work?”
- “Which initiative got the most agent spend in the last 90 days?”
explain_work_item
Explains one initiative, project, or issue: its path, its totals, its children with their totals and milestones, its pull requests with the highest spend, and its sessions with the largest contribution. Give the id of an item from get_roadmap, explain_pull_request, or explain_session. Without View Team Activity, the inference cost counts only your own sessions.
Result fields
Result fields
- “What did the billing project cost this month, and which pull requests drove it?”
- “Which sessions worked on the initiative with the most spend?”
find_models
Searches the model catalog of Agent Golf. The catalog is the same for each workspace. The model_canonical_id of find_requests is a catalog ID.
Result fields
Result fields
- “What does Claude Opus cost per million output tokens?”
- “Which models did Anthropic release this year?”
read_local_session
Reads a part of a local Claude Code, Codex, or GitHub Copilot CLI transcript on your machine. Only the local agentgolf mcp server has this tool. It reads only local files, needs no sign-in, and sends nothing to Agent Golf. Its excerpts enter the context of the model. For the CLI versions that it needs, see Local transcripts.
The tool reads Claude Code transcripts in $CLAUDE_CONFIG_DIR or ~/.claude, Codex transcripts in $CODEX_HOME or ~/.codex, and GitHub Copilot CLI transcripts in $COPILOT_HOME or ~/.copilot. VS Code Copilot Chat has no transcript that the tool reads.
Give at least one of
tool_call_id, tool_name, start_time, or end_time. If you give both times, end_time must not be earlier than start_time.
Without tool_call_id, the windows start from the earliest matches. Then tool_name alone or a wide time range can leave out the call that you want. Read in_window in candidates, and give a shorter range.
Result fields
Result fields
- “Read my local transcript around the first failing tool call of this session.”