Skip to main content
Glama

Upsert Screen States

upsert-screen-states
Idempotent

Merge screen names and state strings into the project's relational atlas (idempotent upsert). Body uses camelCase screenStates: [{ screen, states: string[] }, ...] per UpsertScreenStatesRequest.

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": {
      "screenStates": "<screenStates>"
    },
    "name": "upsert-screen-states"
  }
}

Input Schema

NameRequiredDescriptionDefault
botIdNoQA bots: your botId from your stored TestChimp binding.
projectIdNoThe TestChimp project this repo belongs to: projectId from the repo's .testchimp/creds.json. Pass it on every call when working in a repo. Not a secret.
gitCommitShaNo
screenStatesYes
projectApiKeyNoProject API key. QA bots: required on every call except get-bot-credentials, get-project-credentials and get-bot-compat. Others: only to look up a repo's projectId via get-project-credentials when its creds file has a key but no projectId. Prefer projectId. Never print it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / projectApiKey / description
      Previous value: -"QA bots: your own project API key from your stored TestChimp binding. Required on every call except get-bot-credentials, get-project-credentials and get-bot-compat. Never print it."New value: +"Project API key. QA bots: required on every call except get-bot-credentials, get-project-credentials and get-bot-compat. Others: only to look up a repo's projectId via get-project-credentials when its creds file has a key but no projectId. Prefer projectId. Never print it."
    • addedInput schema / properties / projectId
      Added value: +{
      +  "description": "The TestChimp project this repo belongs to: projectId from the repo's .testchimp/creds.json. Pass it on every call when working in a repo. Not a secret.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed5 schema fields changed
    • addedInput schema / properties / gitCommitSha
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / screenStates / items / properties / firstDiscoveredCommitSha
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / screenStates / items / properties / isNewInRange
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / screenStates / items / properties / platform
      Added value: +{
      +  "enum": [
      +    "web",
      +    "ios",
      +    "android"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / screenStates / items / properties / stateDetails
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "firstDiscoveredCommitSha": {
      +        "type": "string"
      +      },
      +      "isNewInRange": {
      +        "type": "boolean"
      +      },
      +      "state": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / botId
      Added value: +{
      +  "description": "QA bots: your botId from your stored TestChimp binding.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / projectApiKey
      Added value: +{
      +  "description": "QA bots: your own project API key from your stored TestChimp binding. Required on every call except get-bot-credentials, get-project-credentials and get-bot-compat. Never print it.",
      +  "maxLength": 256,
      +  "minLength": 8,
      +  "type": "string"
      +}
  4. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds real signal by saying it MERGES rather than replaces, implying existing screen entries survive, but it does not say what happens to state strings not present in the payload, nor whether optional fields like platform are required for correct merging.

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 the operation and scope front-loaded, followed by the body-format note. The abbreviated "per UpsertScreenStatesRequest" is slightly cryptic but costs little space and points to a named type.

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?

For a 5-parameter single-nested-array mutation with full annotation coverage and no output schema, the description gives enough to call it correctly: the body shape, required array, and merge semantics. Missing detail on optional per-item fields and the merge conflict rules keeps it short of complete, but nothing essential to invocation is absent.

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 60%, and the description restates the screenStates body shape (screen + states[]) with the camelCase caveat, which is mildly useful confirmation. However, it ignores the other half of the nested object — platform, isNewInRange, stateDetails, firstDiscoveredCommitSha — leaving their semantics entirely to the schema.

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?

States a specific verb and resource: "Merge screen names and state strings into the project's relational atlas," plus the parenthetical "idempotent upsert" which pins down the operation type. It is clearly distinct from list-screen-states by being a write/merge operation, though it never names the sibling to route agents explicitly.

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 implied by the merge/upsert framing and the idempotency note suggests it is safe to re-run, but there is no explicit when-to-use, when-not-to-use, or pointer to list-screen-states for reading. An agent must infer the calling context from the tool name alone.

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.