Skip to main content
Glama

rate_response

DestructiveIdempotent

Marks an individual respondent comment as helpful or not_helpful. Use this after get_survey_responses to programmatically curate response quality — e.g. flag low-effort or off-topic responses for downstream filtering.

IMPORTANT: rating a response 'not_helpful' is destructive. It counts against a per-survey flag cap: free (pay-as-you-go) owners may flag 10% of the sample size, rounded up (e.g. 3 flags on a 30-response survey) — or 30% of the sample size with a floor of 2 on screen-recording polls; trial owners use the same limit. Non-trial PickFu+/Enterprise subscribers have no cap. The cap is per survey, not a fixed number, so do not quote one without knowing the sample size and plan. Exceeding it returns an error. Within the cap it auto-rejects the response (and, on multi-question surveys, all responses from the same respondent), recalculates the survey's valid-answer count, and may reopen a completed survey to collect replacement responses. Confirm with the user before applying 'not_helpful' to multiple responses in bulk.

Switching a previous 'not_helpful' rating to 'helpful' records the new vote but does NOT un-reject the response that was auto-rejected by the prior flag. Re-rating without re-sending the comment field preserves the previous comment.

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": {
      "surveyId": "<surveyId>",
      "responseId": "<responseId>",
      "rating": "<rating>"
    },
    "name": "rate_response"
  }
}

Input Schema

NameRequiredDescriptionDefault
ratingYesRating to apply. 'helpful' marks the response as high-quality. 'not_helpful' flags it as low-quality and may auto-reject the response — see tool description for full effect.
teamIdNoAccount ID from whoami, or personal. Keep the same account through draft creation, quote confirmation, and publication.
commentNoOptional reason or note attached to the rating (max 500 chars).
surveyIdYesThe parent survey id returned with this response.
responseIdYesThe response ID (GUID) returned in the `id` field of get_survey_responses.
idNamespaceNoIdentifier namespace. Omit for historical/canonical lookup; choose canonical or legacyGuid to disambiguate an owned collision. legacyNumber uses a positive decimal database id.

Output Schema

NameRequiredDescriptionDefault
dataNo
successNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / teamId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": "personal",
      +      "type": "string"
      +    },
      +    {
      +      "pattern": "^tm_[0-9a-f]{32}$",
      +      "type": "string"
      +    }
      +  ],
      +  "description": "Account ID from whoami, or personal. Keep the same account through draft creation, quote confirmation, and publication."
      +}
  2. Changed5 schema fields changed
    • addedInput schema / properties / idNamespace
      Added value: +{
      +  "description": "Identifier namespace. Omit for historical/canonical lookup; choose canonical or legacyGuid to disambiguate an owned collision. legacyNumber uses a positive decimal database id.",
      +  "enum": [
      +    "canonical",
      +    "legacyGuid",
      +    "legacyNumber",
      +    "unclassified"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / responseId
      Added value: +{
      +  "description": "The response ID (GUID) returned in the `id` field of get_survey_responses.",
      +  "pattern": "^[A-Za-z0-9_-]{1,64}$",
      +  "type": "string"
      +}
    • removedInput schema / properties / response_id
      Removed value: -{
      -  "description": "The response ID (GUID) returned in the `id` field of get_survey_responses.",
      -  "pattern": "^[A-Za-z0-9_-]{1,64}$",
      -  "type": "string"
      -}
    • addedInput schema / properties / surveyId
      Added value: +{
      +  "description": "The parent survey id returned with this response.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "response_id",
      -  "rating"
      -]New value: +[
      +  "surveyId",
      +  "responseId",
      +  "rating"
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description earns its keep by disclosing the mechanics the flag hides: a per-survey flag cap that varies by plan and sample size (10% free, 30%/floor 2 on screen-recording polls, unlimited for PickFu+/Enterprise), the cascading auto-rejection of all responses from the same respondent on multi-question surveys, recalculation of valid-answer counts, and the possible reopening of a completed survey for replacements. It also flags a real trap: switching 'not_helpful' to 'helpful' records the new vote but does not un-reject the previously auto-rejected response, and comment preservation depends on resending the field. This is exactly the non-obvious consequence data an agent needs before a mutation.

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?

Purpose is front-loaded in sentence one, with the destructive caveats and cap math after it — correct ordering for a flagged mutation. The cap paragraph is dense but nearly every clause carries operational weight; the aside 'so do not quote one without knowing the sample size and plan' is arguably advisory padding, and the plan enumeration could be trimmed slightly without losing meaning.

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?

An output schema exists and annotations cover the safety profile, so the description only needed to carry the behavioral edge cases — and it does: cap limits, cascading rejection, survey reopening, re-rating irreversibility, comment retention, and a bulk-use confirmation requirement. For a six-parameter destructive mutation, nothing an agent needs in order to call it safely is absent.

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 the enum values, GUID pattern, and 500-char comment limit are already documented, making 3 the baseline. The description goes beyond by explaining the comment retention rule on re-rating and by tying `rating` values to their downstream effects (flags, auto-rejection), which the schema only gestures at with 'see tool description'. It does not explain `teamId` or `idNamespace`, but those are self-documented in the schema.

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?

The first sentence gives a specific verb (marks) and resource (an individual respondent comment) plus the exact value domain (helpful or not_helpful). The follow-up sentence anchors it in the workflow by naming `get_survey_responses` as the preceding call and describing the curation outcome, so an agent can distinguish this from read tools like `get_survey_responses` or `export_survey_results` without opening the schema.

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?

It states exactly when to reach for this tool (after `get_survey_responses`, to curate low-effort or off-topic responses) and adds a concrete precondition for bulk use: confirm with the user before applying 'not_helpful' to multiple responses. What's missing is an explicit boundary against sibling write tools such as `pin_response` — the agent is left to infer which mutation applies, but no wrong choice is encouraged.

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