Skip to main content
Glama

CodePress Sites

Get website source state

get_website_source_state
Read-onlyIdempotent

Reads compact source state (ahead/current/unknown/not_tracked) and head_commit_sha, the App's current source commit. refresh=true refreshes the source comparison.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "page_id": "<page_id>"
    },
    "name": "get_website_source_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_idYesApp page UUID.
refreshNo
organizationNoOrg slug or id to act in; the default organization when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the description's job is to add substance — and it does by disclosing the returned state vocabulary and head_commit_sha, plus the non-obvious effect of refresh=true triggering a fresh source comparison. It stops short of noting any cost, latency, or permission implications of a refresh, which would have completed the picture.

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

Conciseness4/5

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

Two tight sentences with no filler; the primary output fields lead and the refresh behavior follows. The parenthetical enum list and the appositive 'the App's current source commit' are slightly dense but each carries information an agent cannot get elsewhere.

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

Completeness4/5

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

With no output schema, explaining the state values and head_commit_sha is essential and is done here. For a three-parameter, read-only, closed-world tool the definition covers what an agent needs to call it; only the caching/staleness semantics of refresh remain unstated.

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

Parameters3/5

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

Schema coverage is 67%: page_id and organization are already documented in the schema, while refresh has no schema description. The description rescues refresh by explaining that setting it true refreshes the source comparison, adding real meaning. The remaining parameters gain nothing beyond the schema, so a 3-4 range is appropriate and the mid-point is fair.

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

Purpose4/5

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

Uses a specific verb+resource pairing ('Reads compact source state ... and head_commit_sha') and enumerates the possible state values (ahead/current/unknown/not_tracked), which lets an agent understand the return shape without a schema. It does not explicitly contrast itself with nearby siblings such as get_website_status or list_app_source_files, so it stops short of a 5.

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

Usage Guidelines3/5

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

Usage is only implied: the description makes clear it reports source comparison state and the current source commit, which suggests a pre-publish sync check. There is no explicit statement of when to call it versus get_website_status or the source-file readers, and no prerequisite or exclusion guidance.

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.