Skip to main content
Glama
tkrishnav31

igrid-sce-mcp-tool

by tkrishnav31

igrid-sce-mcp-tool v4 — Read / Write / Admin

Node.js/JavaScript MCP integration layer for the existing iGrid-Prometheus REST APIs. The iGrid backend and the existing eight-tool split are unchanged; this version adds SAP BTP XSUAA role-based authorization at the MCP tool level.

Authorization model

The project now defines three XSUAA scopes, three role templates, and three predefined role collections:

Role collection

Role template

Scopes

Allowed MCP operations

iGrid-MCP-Read

Read

$XSAPPNAME.read

GET/read tools only

iGrid-MCP-Write

Write

$XSAPPNAME.write

POST/write tools only

iGrid-MCP-Admin

Admin

$XSAPPNAME.read, $XSAPPNAME.write, $XSAPPNAME.admin

All eight tools

Authorization is checked inside the common MCP toolHandler before any downstream iGrid API request. A user without the required scope receives a Forbidden: MCP tool error.

Related MCP server: agent-sudo-mcp

Exactly 8 MCP tools

Bearer group — src/tools/bearer-tools.js

  1. igrid_list_domainsGET /api/hub/datasetsRead/Admin

  2. igrid_get_templateGET /api/hub/template/:domainRead/Admin

  3. igrid_run_agentPOST /api/ai/runWrite/Admin

  4. igrid_propose_actionPOST /api/ai/action/proposeWrite/Admin

  5. igrid_decide_actionPOST /api/ai/action/decideWrite/Admin

  6. igrid_metricsGET /api/ai/metricsRead/Admin

x-api-key group — src/tools/api-key-tools.js

  1. igrid_ingest_csvPOST /api/ingest/:domainWrite/Admin

  2. igrid_export_csvGET /api/export/:domainRead/Admin

igrid_propose_action is intentionally classified as Write because the requested authorization rule is based on the actual HTTP operation and this tool uses POST.

No igrid_health MCP tool is exposed. /healthz remains only the application health endpoint.

Existing downstream iGrid behavior is unchanged

  • Six tools continue to use the iGrid Bearer/service session.

  • igrid_ingest_csv and igrid_export_csv continue to use the iGrid x-api-key channel.

  • No Destination or Connectivity service is introduced.

  • No credentials or secrets are hard-coded.

Important files

xs-security.json                 XSUAA scopes, role templates, role collections
src/auth/xsuaa.js               XSUAA authentication + OAuth metadata
src/auth/authorization.js       Read/Write/Admin authorization checks
src/context/auth-context.js     Per-request auth context propagation
src/tools/response.js           Common MCP tool-level enforcement
src/tools/bearer-tools.js       6 Bearer tools and permission mapping
src/tools/api-key-tools.js      2 x-api-key tools and permission mapping

Environment

IGRID_BASE_URL=https://igrid-prometheus.azurewebsites.net
IGRID_API_KEY=<IGRID_API_KEY>
IGRID_BEARER_TOKEN=<optional pre-issued iGrid Bearer>
IGRID_SERVICE_EMAIL=<optional approved iGrid service email>
IGRID_SERVICE_PASSWORD=<optional approved iGrid service password>
IGRID_MFA_CODE=<optional MFA code>
IGRID_MFA_BODY_JSON=<approved MFA JSON body using {{code}}>
IGRID_REQUEST_TIMEOUT_MS=30000

MCP_TRANSPORT=http
MCP_HOST=0.0.0.0
MCP_PORT=8080
MCP_PATH=/mcp

# Local stdio / local HTTP test authorization only.
# Ignored for a hosted request authenticated through XSUAA.
MCP_LOCAL_ROLE=Admin
MCP_HTTP_AUTH_TOKEN=

For Bearer tools, a pre-issued IGRID_BEARER_TOKEN is preferred. If absent, the existing token manager can use the approved iGrid login/MFA contract when the required MFA configuration is supplied.

Build

npm install
npm run check
npm run security:check
npm test
npx mbt build -t mta_archives

BTP deployment

cf login
cf target -o <ORG> -s <SPACE>
cf deploy mta_archives/igrid-sce-mcp-tool_4.0.0.mtar -f

Set iGrid secrets after deployment:

cf set-env igrid-sce-mcp-tool IGRID_API_KEY '<IGRID_API_KEY>'
cf set-env igrid-sce-mcp-tool IGRID_BEARER_TOKEN '<IGRID_BEARER_TOKEN>'
cf restart igrid-sce-mcp-tool

Or, when using the approved service login/MFA flow:

cf set-env igrid-sce-mcp-tool IGRID_SERVICE_EMAIL '<SERVICE_EMAIL>'
cf set-env igrid-sce-mcp-tool IGRID_SERVICE_PASSWORD '<SERVICE_PASSWORD>'
cf set-env igrid-sce-mcp-tool IGRID_MFA_BODY_JSON '<APPROVED_JSON_WITH_{{code}}>'
cf restart igrid-sce-mcp-tool

XSUAA role assignment

Deployment creates/updates the XSUAA service instance igrid-sce-mcp-tool-xsuaa from xs-security.json.

After deployment, in the SAP BTP subaccount:

  1. Open Security → Role Collections.

  2. Confirm the predefined collections iGrid-MCP-Read, iGrid-MCP-Write, and iGrid-MCP-Admin exist.

  3. Assign iGrid-MCP-Read to read-only users.

  4. Assign iGrid-MCP-Write to write-only users.

  5. Assign iGrid-MCP-Admin only to users who need both GET and POST MCP tools.

  6. Re-authenticate the MCP client so its new token contains the assigned scopes.

If the user has only Read, POST tools fail at the MCP layer. If the user has only Write, GET tools fail. Admin can invoke all eight tools.

OAuth / Claude remote MCP

Use the deployed endpoint:

https://<BTP_ROUTE>/mcp

The OAuth discovery metadata now advertises the XSUAA read, write, and admin scopes. For user-specific role enforcement, use an OAuth flow that produces a user token, normally authorization code, so the user's BTP role collections are represented in the token.

A service key can still provide XSUAA OAuth client credentials, but a client_credentials token is a technical-client identity and should not be treated as if it inherited a human user's role collection.

Local stdio

Local stdio does not have a BTP user JWT, so role behavior is simulated with MCP_LOCAL_ROLE. Default is Admin to preserve the previous local behavior.

Read-only local test:

MCP_LOCAL_ROLE=Read npm run start:stdio

Write-only local test:

MCP_LOCAL_ROLE=Write npm run start:stdio

Full local test:

MCP_LOCAL_ROLE=Admin npm run start:stdio

Claude Desktop/Code example:

{
  "mcpServers": {
    "igrid-sce-mcp-tool": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/igrid-sce-mcp-tool/src/server.js"],
      "env": {
        "MCP_TRANSPORT": "stdio",
        "MCP_LOCAL_ROLE": "Read",
        "IGRID_BASE_URL": "https://igrid-prometheus.azurewebsites.net",
        "IGRID_API_KEY": "<IGRID_API_KEY>",
        "IGRID_BEARER_TOKEN": "<IGRID_BEARER_TOKEN>"
      }
    }
  }
}

Role acceptance test

Use three users (or three user-role assignments) and obtain a fresh token after each assignment.

Read user

Expected success:

igrid_list_domains
igrid_get_template
igrid_metrics
igrid_export_csv

Expected Forbidden::

igrid_run_agent
igrid_propose_action
igrid_decide_action
igrid_ingest_csv

Write user

Expected success:

igrid_run_agent
igrid_propose_action
igrid_decide_action
igrid_ingest_csv

Expected Forbidden::

igrid_list_domains
igrid_get_template
igrid_metrics
igrid_export_csv

Admin user

All eight tools should pass the MCP role check. Downstream iGrid authentication/authorization and request validation still apply.

Security notes

  • The permission check happens before the iGrid API invocation.

  • XSUAA controls inbound MCP permissions; iGrid remains authoritative for downstream credentials and business authorization.

  • Never put the iGrid API key, iGrid password, Bearer token, XSUAA client secret, or service key in source control.

  • See README-SECURITY.md for the concise security model.

Available Tools

8 tools
igrid_decide_actionDecide governed actionA
Destructive

WRITE role: approve or reject a previously proposed action. Requires explicit humanConfirmed=true; iGrid remains authoritative for downstream authorization.

ParametersJSON Schema
NameRequiredDescriptionDefault
noteNo
requestNo
decisionYes
selectedIdsNo
humanConfirmedYes

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare destructiveHint=true, which the description reinforces by stating this is a 'WRITE role' action. The description adds critical behavioral info: the need for humanConfirmed=true and iGrid's downstream authorization authority, which goes beyond what annotations alone provide.

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 concise sentences that front-load the key message ('WRITE role') and critical constraint. Every sentence adds value, but some parameter details are missing, and the description could be slightly more efficient.

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?

Given 5 parameters (2 required), 0% schema coverage, no output schema, and a destructive action, the description covers the core governance constraint but omits important details: what 'note' is used for, how 'selectedIds' relates to the action, and what the tool returns upon success or failure.

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 0%, so the description must compensate. It adds meaning for 'humanConfirmed' (requires true) and implies intent for 'decision' (approve/reject). However, it does not explain other parameters like 'note', 'request', or 'selectedIds', leaving gaps.

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?

The description uses specific verbs ('approve or reject') and identifies the resource ('previously proposed action'). It distinguishes from siblings like igrid_propose_action by focusing on the decision step.

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?

The description explicitly warns that 'humanConfirmed=true' is required and mentions downstream authorization by iGrid, providing clear usage context. However, it does not explicitly list when not to use this tool or name alternatives.

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

igrid_export_csvExport governed CSVC
Read-only

READ role: export an iGrid domain through GET /api/export/:domain using the documented x-api-key M2M endpoint.

ParametersJSON Schema
NameRequiredDescriptionDefault
domainYes

TDQS

C2.9/5.0
Behavior3/5

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

The description aligns with annotations (readOnlyHint=true, destructiveHint=false) and adds context about the authentication method (x-api-key M2M) and endpoint. However, it does not disclose additional behavioral traits such as response format, size limits, or error handling beyond what annotations already provide.

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?

The description is a single sentence with no wasted words, and the 'READ role:' prefix is front-loaded. However, it could be more structurally organized (e.g., separate usage notes from technical details).

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

Completeness2/5

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

With only one parameter and no output schema, the description provides the endpoint and auth method but omits critical details: the output format (CSV), success/error responses, prerequisites (e.g., listing domains first), and typical usage context. This leaves the agent underinformed.

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

Parameters2/5

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

The schema has 0% description coverage for the single required parameter 'domain'. The description does not elaborate on the parameter's meaning, constraints, or format beyond the endpoint path hint. Since coverage is low, the description should compensate, but it fails to do so.

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?

The description clearly states the verb 'export' and resource 'iGrid domain', and specifies the HTTP method and endpoint. However, it does not explicitly distinguish from sibling tools like igrid_ingest_csv (import) or igrid_list_domains, and the title mentions 'CSV' but the description omits the output format.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. The 'READ role' prefix hints at read-only usage, but there is no explicit comparison to siblings or conditions for use.

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

igrid_get_templateGet domain CSV templateA
Read-only

READ role: return the contract-accurate CSV template for an iGrid domain.

ParametersJSON Schema
NameRequiredDescriptionDefault
domainYes

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and destructiveHint=false, so the agent knows this is a safe read operation. The description appropriately adds that the template is 'contract-accurate', which is meaningful behavioral context beyond the annotations—it implies the returned CSV matches a predefined contract schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that efficiently conveys the verb, output, context (contract-accurate), and resource (iGrid domain). Every word earns its place with no redundancy.

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?

Given the low complexity (1 parameter, no output schema, simple return type), the description is mostly complete. It could mention whether the template is downloaded or returned as a string, but the phrase 'return the ... CSV template' implies the tool returns the template data.

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 description coverage is 0%, so the description must compensate. It identifies the sole parameter 'domain' by stating 'for an iGrid domain'—this directly maps the parameter name to a meaningful concept (the iGrid domain). Though it doesn't elaborate on format, the mapping is clear and sufficient because there is only one required parameter.

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 description uses the specific verb 'return' with the resource 'CSV template for an iGrid domain', and clarifies the result is 'contract-accurate'. It also distinguishes from sibling tools like igrid_export_csv and igrid_ingest_csv by naming the specific artifact type (template, not data export or ingestion).

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?

The description states the READ role requirement, implying authentication context, and the template name includes 'domain' which matches the sole required parameter. However, it does not explicitly state when an agent should use this tool versus alternatives like igrid_export_csv (to get template vs. export actual data) or igrid_ingest_csv (to import data).

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

igrid_ingest_csvIngest CSV into iGridC
Destructive

WRITE role: send CSV to iGrid through POST /api/ingest/:domain using the documented x-api-key M2M endpoint.

ParametersJSON Schema
NameRequiredDescriptionDefault
csvYes
domainYes

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, and the description adds 'WRITE role' and the HTTP method/endpoint, reinforcing the write nature. However, it does not explain what gets destroyed (e.g., overwrite? append?), error states, or idempotency. The added context is modest beyond annotations.

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?

The description is a single efficient sentence with no wasted words. It front-loads the key action and role. However, the technical phrasing (POST /api/ingest/:domain) may be overly detailed for an agent not aware of the API structure.

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

Completeness2/5

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

Given the tool has no output schema and two parameters, the description should cover return values (e.g., success status), error handling, and prerequisites (e.g., domain must exist). None of these are addressed. The description is too minimal to be fully usable by an agent.

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

Parameters1/5

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

Schema has 0% description coverage, and the description does not explain the 'csv' or 'domain' parameters beyond the endpoint reference. No details on CSV format, size limits (present in schema but not repeated), domain validation, or usage constraints. The description fails to compensate for the missing schema documentation.

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?

The description states 'send CSV to iGrid through POST /api/ingest/:domain', which is a specific verb+resource action. It distinguishes from sibling tools like igrid_export_csv and igrid_list_domains. However, it does not clarify what 'ingest' accomplishes (e.g., load into grid, replace existing data), leaving the outcome ambiguous.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. There is no mention of prerequisites (e.g., domain must exist), when not to use it, or how it compares to siblings like igrid_export_csv or igrid_run_agent.

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

igrid_list_domainsList iGrid domainsA
Read-only

READ role: discover current iGrid hub datasets with counts and freshness.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already indicate readOnlyHint=true and destructiveHint=false. The description reinforces this with 'READ role' and adds useful behavioral context about the return content (counts and freshness), going beyond the annotations by specifying what the user will learn from the tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, tightly worded sentence that front-loads the read-only nature and immediately conveys the purpose. No unnecessary words or repetition.

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 parameterless read-only list tool, the description is sufficiently complete. It specifies the type of data returned (datasets, counts, freshness) and the safety profile via annotations and 'READ role'. Without an output schema, this gives the agent a reasonable expectation of the result.

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?

The tool has zero parameters, so the schema fully covers the parameter space. The description adds no parameter details, but no parameters exist to describe, making the baseline 4 appropriate.

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 description uses the verb 'discover' and clearly identifies the resource as 'current iGrid hub datasets' with specific output details (counts and freshness). This distinguishes it from sibling tools like igrid_ingest_csv or igrid_export_csv, which have different purposes.

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?

The description implies a read-only discovery use case, which is clear context. However, it does not explicitly state when to use this tool versus the alternatives, nor does it mention any exclusions or alternative tools.

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

igrid_metricsGet iGrid AI metricsA
Read-only

READ role: return token/cost observability metrics for the iGrid AI assistant.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds value by specifying exactly what kind of data is returned ('token/cost observability metrics'), which goes beyond the annotations. No contradictions exist. For a tool with no parameters, this is sufficient behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that front-loads the read role and immediately states what is returned. Every word is necessary and informative. No wasted text.

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?

Given the simplicity (no parameters, no output schema, clear purpose), the description fully satisfies completeness. It tells the agent exactly what the tool does and what data it returns. Combined with sibling names, the agent can infer when to use it.

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?

There are no parameters, and schema description coverage is 100% trivially. Baseline for zero parameters is 4. The description does not need to add parameter details. It correctly omits any irrelevant parameter information.

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 description clearly states the tool returns 'token/cost observability metrics' for the iGrid AI assistant. The verb 'return' combined with the specific resource 'metrics' makes the purpose unambiguous. It naturally distinguishes from siblings like igrid_export_csv or igrid_run_agent, which have different purposes.

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?

The phrase 'READ role' hints that this is for read-only observation, but there is no explicit guidance on when to use this tool versus alternatives. For example, it does not say when to use this over igrid_list_domains or igrid_get_template. Usage context is implied by the tool name and title but not explicitly stated.

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

igrid_propose_actionPropose governed actionA

WRITE role: submit a governed action proposal through POST /api/ai/action/propose. It remains a dry-run proposal and does not approve the action.

ParametersJSON Schema
NameRequiredDescriptionDefault
requestYes

TDQS

A3.7/5.0
Behavior3/5

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

Annotations indicate it is not read-only and not destructive. The description adds that it is a dry-run proposal and does not approve, which is useful. However, it does not disclose potential side effects (e.g., whether the proposal is stored), the request structure, or error behavior, leaving gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, each carrying essential information: the action being performed and its non-approving nature. No wasted words, and key details are front-loaded.

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

Completeness2/5

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

For a tool with one free-form object parameter and no output schema, the description should explain the expected structure of the request and the response. It only covers the high-level purpose and dry-run behavior, leaving the agent under-informed about how to use the input correctly.

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

Parameters2/5

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

The only parameter 'request' has no schema description (0% coverage) and the tool description does not explain what the request object should contain. It merely mentions 'governed action proposal,' providing minimal guidance for the agent to construct a valid request.

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 description uses a specific verb ('submit') and resource ('governed action proposal'), explicitly names the endpoint, and clearly distinguishes from siblings by stating it does not approve the action, which contrasts with igrid_decide_action.

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 the role ('WRITE role') and that it is a dry-run proposal, implying use for submission without approval. However, it does not explicitly tell when to use this versus alternative tools like igrid_decide_action, leaving some inference needed.

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

igrid_run_agentRun iGrid AI agentC
Destructive

WRITE role: run an existing iGrid AI agent through POST /api/ai/run.

ParametersJSON Schema
NameRequiredDescriptionDefault
requestYes

TDQS

C2.6/5.0
Behavior2/5

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

The annotations already declare destructiveHint=true, so the agent knows this is a mutation tool. However, the description adds no context about what the mutation entails (e.g., side effects, irreversible actions, resource consumption). Given the annotation covers the destructive nature, but the description does not elaborate on specifics like state changes or concurrency limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short but not optimally structured. 'WRITE role' prefix is unclear and wastes space without adding value. The endpoint detail is helpful, but the single sentence tries to cover both purpose and endpoint. It could be more concise by removing 'WRITE role' and focusing on the agent execution context.

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

Completeness2/5

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

Given the tool has a single, complex nested parameter with no schema definition, no output schema, and destructive annotations, the description is incomplete. It does not specify return values, error states, or how to structure the 'request' object. Sibling tools suggest a broader iGrid ecosystem, but no connection is made.

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

Parameters2/5

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

The input schema has one required parameter 'request' of type object with no schema definition (additionalProperties: true). Schema description coverage is 0%, so the description must compensate, but it only mentions the endpoint and does not explain the structure or expected content of the 'request' object. The nested object is completely undocumented.

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?

The description states a specific verb ('run') and resource ('existing iGrid AI agent') and includes the exact endpoint (POST /api/ai/run). It distinguishes from siblings like igrid_export_csv and igrid_ingest_csv by focusing on agent execution rather than data export or ingestion. However, 'WRITE role' is ambiguous and would benefit from elaboration.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool vs alternatives. The description lists sibling tools but does not differentiate use cases. It does not state whether the agent must be pre-configured, what prerequisites exist, or when to choose this over igrid_decide_action or igrid_propose_action.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 8 tool updatesv4.0.0
    • First observedigrid_decide_action
    • First observedigrid_export_csv
    • First observedigrid_get_template
    • First observedigrid_ingest_csv
    • First observedigrid_list_domains
    • First observedigrid_metrics
    • First observedigrid_propose_action
    • First observedigrid_run_agent

TDQS

A3.7/5.0
Disambiguation5/5

Each tool targets a distinct operation: listing domains, exporting/ingesting CSV, getting templates, running agents, proposing/deciding actions, and metrics. There is no overlap or ambiguity between them.

Naming Consistency5/5

All tools follow the consistent pattern 'igrid_<verb>_<object>' (e.g., igrid_export_csv, igrid_propose_action). The name 'igrid_metrics' uses a noun instead of verb but still fits the pattern as a read operation. Overall, naming is highly predictable.

Tool Count5/5

With 8 tools, the server is well-scoped for its purpose: managing iGrid data domains and AI agent actions. The number is neither too small nor too large, each tool serves a clear function.

Completeness4/5

The tool surface covers key workflows: domain discovery, CSV import/export, template retrieval, agent execution, action governance, and metrics. Minor gaps exist, such as no tool for listing past proposed actions or viewing action history, but core functionality is complete.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    A
    maintenance
    Provides a trust and governance layer for AI agents, enabling secure API access, credential vaulting, paid execution with human approval, and automatic call resume.
    15
    2
    -
  • A
    license
    A
    quality
    A
    maintenance
    Local zero-trust permission gateway for AI agents. Enforces policy-based tool authorization, human approvals, scoped permissions, and cryptographically verifiable audit logs.
    4
    5
    Apache 2.0
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides a secure MCP gateway for AI agents to access APIs without exposing raw credentials, with scoped access, audit logging, and OAuth support.
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tkrishnav31/igrid_aits--mcp_tool'

If you have feedback or need assistance with the MCP directory API, please join our Discord server