Skip to main content
Glama

docugen_add_documents_to_feature_group

Put documents of the project in a feature group. A document already in another group moves to this one, unless that group is archived. Answers {featureGroup: {id, name}, results: [{documentId, success, error?: {code, message}}]}, one result per document: the accepted ones are saved even when others are refused, so check each result. An archived group or an archived project accepts no change.

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": {
      "projectId": "<projectId>",
      "groupId": "<groupId>",
      "documentIds": "<documentIds>"
    },
    "name": "docugen_add_documents_to_feature_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupIdYesFeature group id, from docugen_list_feature_groups
projectIdYesProject id
documentIdsYesIds of documents of the same project, from docugen_get_project or docugen_list_documents (1 to 200)

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does well: it discloses move semantics (a document already in another group relocates unless that group is archived), the archived-group/archived-project refusal, and partial-success atomicity ("the accepted ones are saved even when others are refused"). It omits permission/auth requirements and whether re-adding a document already in this group is a no-op or an error.

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?

Three sentences, front-loaded with the action, then the return shape, then the partial-failure caveat. Dense but every clause carries information; the only slight cost is that the response-shape sentence is packed with nested notation.

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?

A mutation tool with no annotations and no output schema, so the description is right to spell out the return shape and per-document results. Remaining gaps are authorization requirements and idempotency on repeat calls, which matter for a write operation but are secondary to what is already 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 description coverage is 100%, so the schema already documents all three parameters including the 1–200 limit and id sources. The description only adds that the documents must belong to the same project, which is useful but marginal; 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?

Specific verb ("Put ... in") plus resource (documents into a feature group) with the scope stated as "documents of the project." It is clearly distinct from the sibling docugen_remove_documents_from_feature_group by direction of the operation, though it never names that sibling 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 through the preconditions stated ("An archived group or an archived project accepts no change") and through the move semantics, which tell the agent what happens when a document is already grouped elsewhere. There is no explicit when-to-use guidance or named alternative, so the agent must infer the intended workflow.

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