Skip to main content
Glama

Get Project Credentials

get-project-credentials
Read-onlyIdempotent

Normal (non-bot) OAuth connections: fetch the project key local test runners (Playwright reporter, CLI, k6) need. Returns {projectId, projectName, projectApiKey, userId, backendUrl, ingressUrl} for the project named by the projectId argument, or by projectApiKey (which also tells you a key-only file's projectId); without either, the connection's default project (the MCP URL's ?projectId= when set, else the one picked on the consent page). To persist the runner key without putting it in a shell command: local stdio MCP should call save-workspace-creds; hosted / plugin agents should write /.testchimp/creds.json themselves (mode 0600, dir 0700) from this response and never print projectApiKey. This tool still returns projectApiKey for those callers. Not needed with an API key (stdio already has it).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get-project-credentials"
  }
}

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.
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. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description adds substantially: the project-resolution fallback chain (projectId argument → projectApiKey → MCP URL's ?projectId= → consent-page pick), the security warning 'never print projectApiKey', and required file modes (0600 file, 0700 dir). It also discloses that the tool still returns projectApiKey to those callers, which is non-obvious behavior.

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?

Front-loaded with the purpose and the return shape, then the resolution rules, then persistence guidance — a logical order with no filler. The sentences are dense and nested with parentheticals, which slightly taxes parsing but nothing is redundant.

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

Completeness5/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 compensates by naming every returned field; no parameters are required, and it explains what happens in that case. Given a read-only credential tool with three optional strings, it covers resolution, security posture, and downstream persistence completely.

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

Parameters4/5

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

Schema coverage is 100%, so parameter text alone would justify a 3, but the description adds real semantics: projectApiKey 'also tells you a key-only file's projectId', and with neither argument supplied the connection's default project is resolved from the MCP URL query or consent-page selection. Only botId is left entirely to the schema, which documents it adequately.

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

Purpose5/5

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

Opens with a precise verb+resource and scope: 'Normal (non-bot) OAuth connections: fetch the project key local test runners ... need.' It enumerates the exact return shape ({projectId, projectName, projectApiKey, userId, backendUrl, ingressUrl}) and implicitly separates itself from the bot-credential sibling via 'non-bot', so an agent can distinguish it without opening a schema.

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

Usage Guidelines5/5

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

Explicit when-to-use and when-not: 'Not needed with an API key (stdio already has it)', and named alternatives for persisting the key ('local stdio MCP should call save-workspace-creds; hosted / plugin agents should write <repo>/.testchimp/creds.json themselves'). The routing between the three paths by caller type is fully spelled out.

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.