Tisane Labs ACTION
Analyze Text
Analyze text for language, entities, sentiment, and other insights. See the documentation
- Action
- Read only
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Tisane Labs account once, then configure and run Analyze Text from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "tisane_labs-analyze-text",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
tisane_labs: { authProvisionId: "apn_xxxxxxx" },
language: "Language",
content: "Content",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "tisane_labs-analyze-text",
"configured_props": {
"tisane_labs": { "authProvisionId": "apn_xxxxxxx" },
"language": "Language",
"content": "Content"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "tisane_labs",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "tisane_labs-analyze-text",
arguments: {
language: "Language",
content: "Content",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
language Language | string | The langauge to analyze Required Dynamic |
content Content | string | The content to analyze Required |
format Format | string | The format of the content Optional |
disableSpellcheck Disable Spellcheck | boolean | Determines whether the automatic spellchecking is to be disabled. Default: false Optional |
lowercaseSpellcheckOnly Lowercase Spellcheck Only | boolean | Determines whether the automatic spellchecking is only to be applied to words in lowercase. Default: false Optional |
minGenericFrequency Minimum Generic Frequency | integer | Allows excluding more esoteric terms; The valid values are 0 thru 10. Optional |
subscope Subscope | boolean | Enables sub-scope parsing, for scenarios like hashtag, URL parsing, and obfuscated content (e.g. ihateyou). Default: false Optional |
abuse Abuse | boolean | Output instances of abusive conten. Default: true Optional |
sentiment Sentiment | boolean | Output sentiment-bearing snippets. Default: true Optional |
documentSentiment Document Sentiment | boolean | output document-level sentiment. Default: false Optional |
entities Entities | boolean | Output entities. Default: true Optional |
topics Topics | boolean | Output topics. Default: true Optional |
words Words | boolean | Output the lexical chunks / words for every sentence. Default: false Optional |
fetchDefinitions Fetch Definitions | boolean | Include definitions of the words in the output. Only relevant when the words setting is true. Default: `false Optional |
parses Parse | boolean | Output parse forests of phrases Optional |
deterministic Deterministic | boolean | Whether the n-best senses and n-best parses are to be output in addition to the detected sense. If true, only the detected sense will be output. Default: true Optional |
snippets Snippets | boolean | Include the text snippets in the abuse, sentiment, and entities sections. Default: false Optional |
explain Explain | boolean | If true, a reasoning for the abuse and sentiment snippets is provided when possible Optional |
featureStandard Feature Standard | string | Determines the standard used to output the features (grammar, style, semantics) in the response object Optional |
topicStandard Topic Standard | string | Determines the standard used to output the topics in the response object Optional |
sentimentAnalysisType Sentiment Analysis Type | string | The type of the sentiment analysis strategy Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- tisane_labs-analyze-text
- Version
- 0.0.2
- App
- Tisane Labs
- Authentication
- API key
- Read-only
- Yes
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗