Skip to main content
Glama

specprism_push_surface

Idempotent

Normalize and attach a local .specprism surface scan to a cloud project ID, grounding compliance checks and test paths in the real codebase without GitHub OAuth.

Instructions

Normalize and optionally attach a local .specprism/surface.json brownfield repository scan (detected frameworks, ORMs, testRunners, samplePaths) onto a cloud projectId so Stages 1-4 ground malicious-compliance checks and TC-* file paths in the real codebase without requiring GitHub repo OAuth.

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": {
      "surface": "<surface>"
    },
    "name": "specprism_push_surface"
  }
}

Input Schema

NameRequiredDescriptionDefault
surfaceYesJSON object produced by scan-repo.mjs (.specprism/surface.json) with frameworks, orms, testRunners, codeFileCount, and samplePaths.
projectIdNoOptional cloud project UUID to persist the normalized repoSurface onto.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so safety and repeat-call behavior are covered. The description adds genuinely new context — that this replaces the GitHub OAuth path and feeds later stages — but says nothing about what normalization does to unrecognized fields, what happens if projectId is invalid or already has a surface, or whether existing repoSurface data is overwritten.

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?

One sentence, front-loaded with the action, and focused entirely on what the tool does and why it matters. It is dense and slightly run-on with nested parentheticals, but no clause is filler.

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

Completeness3/5

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

No output schema exists and the description never states what comes back — the normalized surface, a confirmation, or a project reference. For a two-parameter tool with nested input this is a moderate gap, though the input and motivation side is well covered.

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 100%, so both parameters are already documented, including projectId's optionality and purpose. The description only adds the downstream rationale for supplying a surface; it does not explain the expected shape beyond the parenthetical field list or what omitting projectId means for the caller's result. Baseline 3 applies.

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?

Names specific verbs ('Normalize and optionally attach') plus the exact resource (a local .specprism/surface.json brownfield scan) and its downstream effect on Stages 1-4. The domain nouns (frameworks, ORMs, testRunners, samplePaths) pin down what is being normalized, though it never explicitly contrasts itself with the sibling specprism_* tools.

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

Usage Guidelines4/5

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

Gives a clear condition for use: brownfield repositories where you want Stage 1-4 malicious-compliance checks and TC-* paths grounded in the real codebase without GitHub repo OAuth. The 'optionally attach ... onto a cloud projectId' phrasing communicates the local-only vs. persist choice. It stops short of explicit when-not-to-use or an alternative tool to pick instead.

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