Skip to main content
Glama

finish_agent_session

Idempotent

Update hosted finish agent session using privacy-filtered project metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
outcomeNo
summaryYes
blockersNo
decisionsNo
projectIdYesOwned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.
sessionIdYesOwned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.
codeChangesYesRequired completion declaration. Submit every code file changed during this session with its actual unified diff. Use [] only when no code changed. Do not include secrets or unrelated pre-existing edits.
validationsNo
idempotencyKeyYesCaller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.
expectedVersionYesCurrent version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / expectedVersion / description
      Added value: +"Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying."
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action."
    • addedInput schema / properties / projectId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / sessionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
  2. First observed

TDQS

C2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare this is a non-read-only, idempotent, non-destructive, closed-world mutation, so the safety profile is covered. The description adds only the vague clause 'privacy-filtered project metadata' and says nothing about what the session record becomes after finishing, whether prior data is preserved, or the effect of the version conflict implied by expectedVersion.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no padding, which is structurally clean. However the wording is awkward ('Update hosted finish agent session') and front-loads nothing an agent needs, so brevity comes at the cost of usefulness rather than serving it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex mutation with 10 parameters, 6 required, a nested codeChanges object, no output schema, and no annotation coverage of outcome semantics. A one-line description that merely echoes the name leaves the agent without the information needed to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 50%, yet the description explains none of the 10 parameters, including the required codeChanges array and its completion-declaration semantics, idempotencyKey, or expectedVersion. The only informal mapping is 'project metadata' to projectId/summary, which the schema already handles better.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Update hosted finish agent session using privacy-filtered project metadata' largely restates the tool name rather than stating the action it performs (finalizing an agent session with a summary and code-change declaration). It never distinguishes itself from siblings like start_agent_session, finalize_agent_execution, or begin_agent_execution, so the agent learns nothing new about what this tool actually does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no statement of prerequisites (e.g. that it closes a session opened by start_agent_session), and no reference to alternatives such as finalize_agent_execution. The phrase 'privacy-filtered project metadata' hints at a constraint but never explains what it implies for the caller.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources